-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Lost distutils.ccompiler.compiler_class
in latest release
#4876
Comments
Any update when the PR will be merged and ready to use? |
If you are looking for a working version, the 75.8.2 seems to be the latest version which does not include the issue. |
This isn't quite fixed, numpy also imports |
|
@abravalheri totally agree. This is in a really old version of numpy (1.23.5)/numba, but still supported by python 3.10. Newer versions may not have this issue. |
Actually, looks like they still reference this in main: |
I've opened a numpy bug for them to fix current versions: |
The numpy folks have done their job here. |
@effigies looks like they stopped relying on that in numba 0.57.0. I'm on 0.56.4. I'll see if I'm able to upgrade. |
However, they aren't removing that code until Python 3.12. I would think it would be best that distutils should try to refrain from breaking changes until then as well. |
The workaround for this issue should be out now. As I posted elsewhere, I've exposed these attributes temporarily to ease the transition, but I'm not committing to keeping them around for several years. |
setuptools version
setuptools==76.0.0
Python version
Python 3.9
OS
Fedora 41
Additional environment information
No response
Description
As of this morning, my tests have begun failing with:
Note that this import is removed from the latest numpy; this only occurs because I test my declared minimum versions using a
lowest-direct
resolution. This means that if I say I supportnumpy >=1.22
, then I getnumpy 1.22
, but if setuptools is an indirect dependency, it is allowed to be the latest. (It's infeasible to use a recursive lowest for long-standing packages, since that will currently find dependencies with no minimum stated version or with sdists that predaterequires-python
and attempt to install python 2 packages.)If necessary, I can pin an older version of setuptools in my
tox.ini
, but if it's possible to re-add this import, it would save doing this across many repositories.I initially posted this as pypa/distutils#336, not realizing I wasn't posting on setuptools. Feel free to close if that issue is enough.
Expected behavior
I would prefer not to break backwards compatibility with distutils until Python 3.11 is EOL. Many projects did not fully fix this until 3.12.
How to Reproduce
Output
The text was updated successfully, but these errors were encountered: