10000 [Bug]: distutils deprecation · Issue #21057 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[Bug]: distutils deprecation #21057
Closed
@nschloe

Description

@nschloe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0