-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
predict_version_str() not general enough for setup.py #33
Comments
I confirm this issue also, when trying to install from Pypi |
I get a different error: First, I run this to get a 100% clean environment:
then, inside the above container, this to install
I think the package is not packaged correctly - build system requirements are not specified anywhere, and therefore not met. At least a minimal pyproject.toml should be present that specifies what packages are needed in order to execute setup.py, as described here: https://peps.python.org/pep-0518/#build-system-table The only workaround is to preinstall the build requirements and then install from source without build isolation, like this:
Then, I encounter another this error:
@liadomide Is the last error just above similar to yours, or rather to the one posted by @jhgoebbert ? |
After I additionally install wheel (on a new clean container):
I think I'm able to reproduce the first mentioned issue:
I think the issue is that version-query expects the version to be defined within the Python package, not one level above it in a file such as setup.py -- I think that indeed this is an issue in version-query. I've opened a PR in version-query that when done should fix the above issue: mbdevpl/version-query#26 |
As I posted in mbdevpl/version-query#2: I think this issue has been fixed in mbdevpl/version-query#26 -- which has been released just now in version 1.6.0. Please update and check again, the issue should be gone. |
Hi,
if I try to install
ebrains-drive
from source it fails insetup.py
->__version__ = predict_version_str()
because the version cannot be found byversion_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-
andebrains_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 commandIt fails with in
__version__ = predict_version_str()
from here https://github.com/HumanBrainProject/ebrains-storage/blob/master/setup.py#L4 withThe text was updated successfully, but these errors were encountered: