Skip to content

sage_setup: Replace imports from distutils by setuptools #30984

@mkoeppe

Description

@mkoeppe

... in anticipation of the distutils deprecation (https://www.python.org/dev/peps/pep-0632/)

From https://setuptools.readthedocs.io/en/latest/deprecated/distutils-legacy.html

  • distutils.core.setupsetuptools.setup
  • distutils.cmd.Commandsetuptools.Command
  • distutils.log(no replacement yet)
  • distutils.version.*packaging.version.*

"If a project relies on uses of distutils that do not have a suitable replacement above, please search the Setuptools issue tracker and file a request, describing the use-case so that Setuptools’ maintainers can investigate."

Part of #31295 (Meta-ticket: Replace imports from deprecated distutils)

CC: @jhpalmieri @kiwifb @kliem

Component: build

Author: Frédéric Chapoton, Matthias Koeppe

Branch/Commit: 25b877c

Reviewer: Matthias Koeppe, John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/30984

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions