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

ndiff and zenmap: distutils is deprecated (Python 3.12 support) #2649

Closed
samueloph opened this issue May 28, 2023 · 0 comments
Closed

ndiff and zenmap: distutils is deprecated (Python 3.12 support) #2649

samueloph opened this issue May 28, 2023 · 0 comments

Comments

@samueloph
Copy link

From https://peps.python.org/pep-0632/ :

In Python 3.10 and 3.11, distutils will be formally marked as deprecated. All known issues will be closed at this time. import distutils will raise a deprecation warning. New issues that would be considered release blocking may still be fixed, but support for new tools or platforms will not be added.

During Python 3.10 and 3.11, uses of distutils within the standard library may change to use alternative APIs.

In Python 3.12, distutils will no longer be installed by make install or any of the first-party distribution. Third-party redistributors should no longer include distutils in their bundles or repositories.

Code that imports distutils will no longer work from Python 3.12.

The suggested migration path is to use the equivalent (though not identical) imports from setuptools <snip>

I see that zenmap and ndiff are making used of distutils, so they will have to migrate in order to support Python 3.12 (which is scheduled to be released later this year).

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

No branches or pull requests

2 participants