Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move away from distutils #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Move away from distutils #53

wants to merge 2 commits into from

Conversation

rossburton
Copy link

As explain in https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated, distutils is deprecated and will be gone in Python 3.12.

There's no need to override the build command to execute code and catch
an exception to see if the Python being ran is 3.5.

Add a python_requires statement so that Pip checks the version, and
check sys.version_info before running setup().
As per [1] distutils is now deprecated in Python 3.10, and will be
entirely removed in Python 3.12.

Setuptools has an almost identical API, so simply switch to that.

[1] https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

Closes ldo#52
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