-
Notifications
You must be signed in to change notification settings - Fork 2
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
distutils recognises version as 0.0.0 instead of the correct 1.2.0 #19
Comments
If you build from source, you need to install |
It looks like you can get it for opensuse here: So I think you can just require it? (really only is needed at build time) |
Thanks for the quick response. I put in a |
Is this being built with Python3 or Python2? I notice in the I think we could improve the situation here by adding a |
By the way, since you are manually setting the version in the .spec file anyway, you could set
for simpler updating later? |
Ahh, found the problem. I thought this:
was |
It's set up to build for both python2 and python3 for openSUSE_Leap_15.x (which still support both versions of python) and only python3 for openSUSE_Tumbleweed (rolling distro that no longer supports python2). The macros help figure this out (so when it reports python2 missing, it only builds for python3 and so on). Adding |
I've merged #20, which would have made this much easier to diagnose, I believe. I think we should likely do a 1.2.1 with this in the near future. |
Oh, one more thing - what version of setuptools are you using? I think 42+ will automatically install the pyproject.toml requirements - this manual addition is only needed for setuptools < 42. |
Using different setuptools versions:
I hope you don't mind my abusing this bug report with another question I have (I'll open a separate issue if you think it merits one). When building against python2, this error crops up:
Am I missing any python2 specific requirements? Thanks again for all your help. |
This is a bug that was fixed in setuptools 40.7. |
If you want to move this line from setup.cfg into setup.py, you can keep it from becoming Unicode. I'd probably just patch it. Updating setuptools to 40.7 would be a better fix, though. |
Okay, great, I see you've fixed it. We do require setuptools 42+ generally, so that looks like a reasonable fix due to lockin to an older version. |
Yeah, I moved the installed egg-info dir around for the older openSUSEs. That should be all right, I think. |
When building and installing hepunits (I am trying to build packages for openSUSE), setuptools seems to copy the egg-info dir into
/usr/lib/python3.8/site-packages/hepunits-0.0.0-py3.8.egg-info
instead of the correct/usr/lib/python3.8/site-packages/hepunits-1.2.0-py3.8.egg-info
. Probably some issue with distutils reading the pkg version.Attempts to build packages for openSUSE at https://build.opensuse.org/package/show/home:badshah400:branches:science/python-hepunits, but I also attach the full build log here.
_log.zip
Thanks for your massively useful library, btw.
The text was updated successfully, but these errors were encountered: