Skip to content

[Bug]: distutils deprecation #21057

Closed

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

Activity

  1. added this to the v3.6.0 milestone on Sep 13, 2021
  2. QuLogic commented on Sep 13, 2021

    @QuLogic
    Member

    I was aware, but setuptools does not fully replace distutils: pypa/setuptools#2698

  3. modified the milestones: v3.6.0, v3.5.0 on Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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