-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Convolution import error with setuptools v65.6.0 #14025
Comments
This is affected downstream CIs left and right. We need to patch it up soon with something... Even at RTD; example log: https://readthedocs.org/projects/jdaviz/builds/18694319/
|
Am I correct in the understanding that the long term answer he is that we need to stop using |
A short term answer may be to pin down setuptools everywhere? |
Or maybe refactor that convolution code to not be C-extension? Or have it only emit warning on fail? |
Pinning setuptools would mean adding it to our dependencies, not great. There are a few other solutions:
|
I am going to try some dark magic I found at numpy/numpy#22623 (comment) and report back... |
Some projects are only affected when installing. |
Just fixing RTD would be a nice first step... 😬 |
to work around astropy/astropy#14025
FWIW, pinning setuptools just under docs requirements alone is enough to make RTD happy, see spacetelescope/jdaviz#1861 |
This is one way to fix astropy#14025, removing our dependency to numpy.ctypeslib which itself relies on numpy.distutils
We could also update the C extension to not be imported via ctypes but use a regular C extension instead as we do elsewhere (such as in io.fits or wcs) |
Ah or via cython as done in #14035 |
This is one way to fix astropy#14025, removing our dependency to numpy.ctypeslib which itself relies on numpy.distutils
setuptools v65.6.1 has just been released, putting back a |
Thanks, all! |
This is one way to fix astropy#14025, removing our dependency to numpy.ctypeslib which itself relies on numpy.distutils
setuptools v65.6.0 made a change in their bundled version of distutils, which is breaking the import of the compiled extension in
convolution
, which is done withnumpy.ctypeslib.load_library
(which depends onnumpy.distutils
).Some of our builds are failing (currently RTD and wheels, but it seems the tox based one are still using the previous version of setuptools, probably because virtualenv did not update yet):
Ref numpy/numpy#22623, pypa/setuptools#3693
The text was updated successfully, but these errors were encountered: