Closed
Description
Bug summary
Python 3.10 formally deprecated distutils.
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
matplotlib still contains a few occurrences which should probably be removed:
setup.py:from distutils.errors import CompileError
setup.py:from distutils.dist import Distribution
setup.py:setup( # Finally, pass this all along to distutils to do the heavy lifting.
setupext.py:from distutils import ccompiler, sysconfig
setupext.py:from distutils.core import Extension
setupext.py: Return or yield a list of C extensions (`distutils.core.Extension`
Code for reproduction
-
Actual outcome
Expected outcome
Operating system
Ubuntu
Matplotlib Version
master
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Other libraries
No response
Installation
No response
Conda channel
No response