
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
[BUG] Lost `distutils.ccompiler.compiler_class` in latest release Β· Issue #4876 Β· pypa/setuptools
Description:
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: /home/runner/work/pybids/pybids/.tox/py39-min/l...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Business & Finance
- Video & Online Content
Content Management System {π}
What CMS is github.com built with?
Github.com is powered by WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
import, maniacdc, commented, setuptools, version, numpy, numba, latest, issue, python, module, contributor, bug, pypadistutils, effigies, file, line, sign, projects, ccompiler, distutilsccompiler, fix, issues, lost, distutilsccompilercompilerclass, release, compilerclass, minimum, versions, status, mentioned, defaultcompilers, abravalheri, navigation, open, source, public, pull, requests, actions, security, closed, description, opened, information, copy, distutils, newcompiler, importerror, packages,
Topics {βοΈ}
/numpy/numpy/blob/main/numpy/distutils/ccompiler 9/site-packages/numpy/testing/_private/extbuild 9/site-packages/setuptools/_distutils/ccompiler /home/runner/work/pybids/pybids/ 9/site-packages/numpy/distutils/ccompiler 9/site-packages/numpy/distutils/__init__ tox/py39-min/lib/python3 9/site-packages/numpy/testing/__init__ /tmp/py39/lib/python3 _private import extbuild break backwards compatibility copy import copy ccompiler import 'import numpy lost distutils long-standing packages import bug projects testing' output traceback numpy bug comment metadata assignees minimum stated version lowest-direct resolution declared minimum versions predate requires-python response description triage issues maniacdc mentioned numba aot compilation fix current versions cap setuptools latest numpy projects milestone latest version jaraco mentioned open numpy folks opened numpy/numba ccompiler ccompiler' setuptools older version working version imports _default_compilers restores _default_compilers projects newer versions recursive lowest distutils
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Any update when the PR will be merged and ready to use?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:[BUG] Lost `distutils.ccompiler.compiler_class` in latest release
articleBody:### 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:
```
/home/runner/work/pybids/pybids/.tox/py39-min/lib/python3.9/site-packages/numpy/distutils/__init__.py:24: in <module>
from . import ccompiler
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import os
import re
import sys
import shlex
import time
import subprocess
from copy import copy
from distutils import ccompiler
> from distutils.ccompiler import (
compiler_class, gen_lib_options, get_default_compiler, new_compiler,
CCompiler
)
E ImportError: cannot import name 'compiler_class' from 'distutils.ccompiler' (/home/runner/work/pybids/pybids/.tox/py39-min/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py)
```
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 support `numpy >=1.22`, then I get `numpy 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 predate `requires-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 https://github.com/pypa/distutils/issues/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
```console
uv venv -p 3.9 /tmp/py39
source /tmp/py39/bin/activate
pip install setuptools numpy==1.22
python -c 'import numpy.testing'
```
### Output
```console
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/py39/lib/python3.9/site-packages/numpy/testing/__init__.py", line 12, in <module>
from ._private import extbuild, decorators as dec
File "/tmp/py39/lib/python3.9/site-packages/numpy/testing/_private/extbuild.py", line 11, in <module>
from numpy.distutils.ccompiler import new_compiler
File "/tmp/py39/lib/python3.9/site-packages/numpy/distutils/__init__.py", line 24, in <module>
from . import ccompiler
File "/tmp/py39/lib/python3.9/site-packages/numpy/distutils/ccompiler.py", line 9, in <module>
from distutils.ccompiler import (
ImportError: cannot import name 'compiler_class' from 'distutils.ccompiler' (/tmp/py39/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py)
```
author:
url:https://github.com/effigies
type:Person
name:effigies
datePublished:2025-03-10T17:48:05.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:12
url:https://github.com/4876/setuptools/issues/4876
context:https://schema.org
headline:[BUG] Lost `distutils.ccompiler.compiler_class` in latest release
articleBody:### 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:
```
/home/runner/work/pybids/pybids/.tox/py39-min/lib/python3.9/site-packages/numpy/distutils/__init__.py:24: in <module>
from . import ccompiler
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import os
import re
import sys
import shlex
import time
import subprocess
from copy import copy
from distutils import ccompiler
> from distutils.ccompiler import (
compiler_class, gen_lib_options, get_default_compiler, new_compiler,
CCompiler
)
E ImportError: cannot import name 'compiler_class' from 'distutils.ccompiler' (/home/runner/work/pybids/pybids/.tox/py39-min/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py)
```
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 support `numpy >=1.22`, then I get `numpy 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 predate `requires-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 https://github.com/pypa/distutils/issues/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
```console
uv venv -p 3.9 /tmp/py39
source /tmp/py39/bin/activate
pip install setuptools numpy==1.22
python -c 'import numpy.testing'
```
### Output
```console
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/py39/lib/python3.9/site-packages/numpy/testing/__init__.py", line 12, in <module>
from ._private import extbuild, decorators as dec
File "/tmp/py39/lib/python3.9/site-packages/numpy/testing/_private/extbuild.py", line 11, in <module>
from numpy.distutils.ccompiler import new_compiler
File "/tmp/py39/lib/python3.9/site-packages/numpy/distutils/__init__.py", line 24, in <module>
from . import ccompiler
File "/tmp/py39/lib/python3.9/site-packages/numpy/distutils/ccompiler.py", line 9, in <module>
from distutils.ccompiler import (
ImportError: cannot import name 'compiler_class' from 'distutils.ccompiler' (/tmp/py39/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py)
```
author:
url:https://github.com/effigies
type:Person
name:effigies
datePublished:2025-03-10T17:48:05.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:12
url:https://github.com/4876/setuptools/issues/4876
Person:
url:https://github.com/effigies
name:effigies
url:https://github.com/effigies
name:effigies
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:12
interactionType:https://schema.org/CommentAction
userInteractionCount:12
External Links {π}(2)
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net