Skip to content

Don't use deprecated distutils module.#44

Open
sebastic wants to merge 1 commit intotylere:masterfrom
sebastic:no-distutils
Open

Don't use deprecated distutils module.#44
sebastic wants to merge 1 commit intotylere:masterfrom
sebastic:no-distutils

Conversation

@sebastic
Copy link

setup.py still uses the deprecated distutils which will be removed in Python 3.12.

From What’s New In Python 3.10:

The entire distutils package is deprecated, to be removed in Python 3.12. Its functionality for specifying package builds has already been completely replaced by third-party packages setuptools and packaging, and most other commonly used APIs are available elsewhere in the standard library (such as platform, shutil, subprocess or sysconfig). There are no plans to migrate any other functionality from distutils, and applications that are using other functions should plan to make private copies of the code. Refer to PEP 632 for discussion.

Porting from Distutils suggests using setuptools.setup instead of distutils.core.setup.

Because setup_requires is deprecated, PEP 517 (pyproject.toml) is used for the build time dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant