-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix llvmlite version for python 2 #327
Conversation
llvmlite 0.32.0 was the last to support python 2, but the default dependency check looked for >=0.31.0dev0
@ludwigschwardt please review - github doesn't allow me to add reviewers to this PR. |
This could be called a Numba bug (see e.g. numba/numba#5035). Whether there is appetite to backport the It could even be a pip bug, since pip is picking a newer llvmlite source package from the local cache, even though it is incompatible with the Python version. At least that's what happens on my machine (and I suspect on yours too). |
setup.py
Outdated
@@ -61,7 +61,7 @@ | |||
install_requires=['numpy >= 1.12.0', 'katpoint >= 0.9', 'h5py >= 2.3', 'numba', | |||
'katsdptelstate[rdb] >= 0.8', 'dask[array] >= 1.2.1', | |||
'requests >= 2.18.0', 'pyjwt', 'future', | |||
'cityhash >= 0.2.2'], | |||
'cityhash >= 0.2.2', 'llvmlite==0.32.0'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more appropriate change would be:
'llvmlite < 0.32; python_version < "3"'
llvmlite 0.32.0 is already too late, since it is Python 3 only. You want 0.31.0 (and any patch releases on top of that if it ever happens).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thanks for background & the proposed refinement.
as suggested by ludwig
@bmerry, any opinion on this? Should we go ahead and fix this in katdal, or get the Numba guys to cut a 0.47.1 release? 😄 |
It looks like the problem is that llvmlite didn't set My opinionated opinion is that we shouldn't be spending any effort on supporting Python 2 and that people who insist on using it have to solve their own problems, but if you are going to do something, this seems like the simplest solution. |
Thanks, I haven't even looked at llvmlite as the culprit 🙂 This discussion also points out this issue and references PEP 592. It looks like there is now a way to "yank" a released file from PyPI - good to remember. |
thanks, gentlemen. this change does not have zero value - it is critical for continued support of katholog, which is currently still stuck in python2. it would be wasteful to discard any useful work that is generated within the organisation. |
llvmlite 0.32.0 was the last to support python 2, but the default dependency check looked for >=0.31.0dev0