Closed
Description
Hi,
if I try to install ebrains-drive
from source it fails in setup.py
->__version__ = predict_version_str()
because the version cannot be found by version_query
->query_package_folder()
here:
https://github.com/mbdevpl/version-query/blob/v1.5.5/version_query/py_query.py#L38
As the egg-info
is located at <...>/ebrainsdrive/ebrains-drive-0.6.0/ebrains_drive.egg-info
my assumption is here that ebrains-drive-0.6.0
is written with -
and ebrains_drive.egg-info
with _
.
This is related to mbdevpl/version-query#2
Details:
I install ebrains-drive
from the source on pypi using the following command
python -m pip install --prefix=/p/usersoftware/swmanage/goebbert1/stage2024/jupyterlab-test/easybuild/jusuf/software/tvb-ext-bucket/2.0.0-GCCcore-12.3.0 --no-deps --ignore-installed --no-index --no-build-isolation .
It fails with in __version__ = predict_version_str()
from here https://github.com/HumanBrainProject/ebrains-storage/blob/master/setup.py#L4 with
File "/p/usersoftware/swmanage/goebbert1/stage2024/jupyterlab-test/easybuild/jusuf/software/tvb-ext-bucket/2.0.0-GCCcore-12.3.0/lib/python3.11/site-packages/version_query/query.py", line 36, in query_folder
return query_package_folder(path, search_parent_directories=search_parent_directories)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/p/usersoftware/swmanage/goebbert1/stage2024/jupyterlab-test/easybuild/jusuf/software/tvb-ext-bucket/2.0.0-GCCcore-12.3.0/lib/python3.11/site-packages/version_query/py_query.py", line 44, in query_package_folder
raise ValueError(paths, metadata_json_paths, pkg_info_paths)
ValueError: ([PosixPath('/dev/shm/goebbert1/jusuf/tvbextbucket/2.0.0/GCCcore-12.3.0/ebrainsdrive/ebrains-drive-0.6.0'), PosixPath('/dev/shm/goebbert1/jusuf/tvbextbucket/2.0.0/GCCcore-12.3.0/ebrainsdrive'), PosixPath('/dev/shm/goebbert1/jusuf/tvbextbucket/2.0.0/GCCcore-12.3.0'), PosixPath('/dev/shm/goebbert1/jusuf/tvbextbucket/2.0.0'), PosixPath('/dev/shm/goebbert1/jusuf/tvbextbucket'), PosixPath('/dev/shm/goebbert1/jusuf'), PosixPath('/dev/shm/goebbert1'), PosixPath('/dev/shm'), PosixPath('/dev'), PosixPath('/')], [], [])
[end of output]
Metadata
Metadata
Assignees
Labels
No labels