mctools / simplebuild

A very simple to use build system for projects with primarily C++/Python code, intended for usage by scientific developers without a strong SW-engineering background.
https://mctools.github.io/simplebuild/
Apache License 2.0
3 stars 1 forks source link

simple-build-dgcode installed but dgcode bundle not found #46

Closed MilanKlausz closed 7 months ago

MilanKlausz commented 7 months ago

In short: simple-build-system versions from 0.0.25 to 0.0.36 can't find dgcode as a dependency eventhough the simple-build-dgcode package is installed.

Longer version: I've tried to use _dgcodeprojects with different version of the simple-build-system and simple-build-dgcode. I've found that I can only build the packages using a simple-build-system that is older than version 0.0.25. The actual error message when trying to use sb is: ERROR: Could not find dependent project: "dgcode"

The version of simple-build-dgcode (from 0.0.1 to 0.0.3) doesn't seem to matter. The change from v0.0.24 to v0.0.25 included "Change py-plugin search pattern", so that could be the source of the problem.

The environment was created with:

name: dgcode
channels:
  - nodefaults
  - conda-forge
dependencies:
  - compilers
  - bash
  - simple-build-system
  - ncrystal
  - matplotlib
  - zlib
  - geant4
  - expat
  - openscenegraph
  - scipy
  - hdf5
  - pysimplegui
  - pip
  - pip:
    - simple-build-dgcode

The version of the packages were changed with: pip install --force-reinstall -v "simple-build-system==0.0.25"

tkittel commented 7 months ago

Ah yes, this is simply because the simple-build-dgcode package is not yet ready for usage (as the documentation says, "DO NOT USE YET!" :-) ). Please only use the latest simple-build-system package (I.e. reinstall the latest, currently v0.0.36), and wait ~a few days for the simple-build-dgcode package to have a new version.

In the meantime, if you are brave, you can try to use the tk_volatile branch of simple-build-dgcode, which should in principle work (although it is... you guessed it... volatile).

Maybe a command like:

python3 -mpip install git+https://github.com/mctools/simplebuild-dgcode@tk_volatile
tkittel commented 7 months ago

You can now install from main as well, I am currently debugging the pypi deployment so the pypi packages are still still on the old.

tkittel commented 7 months ago

Ok, it is working! Now please make sure you use the latest simple-build-system (0.0.36) and the latest simple-build-dgcode (0.0.6) packages, and I believe it should just work!