setuptools version
65.6.0
Python version
Python 3.10
OS
Ubuntu
Additional environment information
No response
Description
The distutils.log.Log class was removed in 74652ca. This causes popular packages downstream, such as numpy, to fail: see numpy/numpy#22623
Expected behavior
The module distutils.log module was not officially marked as deprecated even though 74652ca added to the docstring that the module is Retained for compatibility and should not be used.. It would be great if the removed class could be reinstated and a deprecation pathway be provided.
How to Reproduce
pip install setuptools==65.6.0
from numpy.distutils import Log
Output
In [4]: from numpy.distutils import Log
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-4-f8e71815afcd> in <module>
----> 1 from numpy.distutils import Log
~/.virtualenvs/aiida_dev/lib/python3.9/site-packages/numpy/distutils/__init__.py in <module>
22 # Must import local ccompiler ASAP in order to get
23 # customized CCompiler.spawn effective.
---> 24 from . import ccompiler
25 from . import unixccompiler
26
~/.virtualenvs/aiida_dev/lib/python3.9/site-packages/numpy/distutils/ccompiler.py in <module>
18 from distutils.version import LooseVersion
19
---> 20 from numpy.distutils import log
21 from numpy.distutils.exec_command import (
22 filepath_from_subprocess_output, forward_bytes_to_stdout
~/.virtualenvs/aiida_dev/lib/python3.9/site-packages/numpy/distutils/log.py in <module>
2 import sys
3 from distutils.log import * # noqa: F403
----> 4 from distutils.log import Log as old_Log
5 from distutils.log import _global_log
6
ImportError: cannot import name 'Log' from 'distutils.log' (/home/sph/.virtualenvs/aiida_dev/lib/python3.9/site-packages/setuptools/_distutils/log.py)
setuptools version
65.6.0
Python version
Python 3.10
OS
Ubuntu
Additional environment information
No response
Description
The
distutils.log.Logclass was removed in 74652ca. This causes popular packages downstream, such asnumpy, to fail: see numpy/numpy#22623Expected behavior
The module
distutils.logmodule was not officially marked as deprecated even though 74652ca added to the docstring that the module isRetained for compatibility and should not be used.. It would be great if the removed class could be reinstated and a deprecation pathway be provided.How to Reproduce
pip install setuptools==65.6.0from numpy.distutils import LogOutput