-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Stop using distutils in python module #10251
Comments
Duplicate of #7702 |
Note that we already use sysconfig to get path information. As discussed in the linked ticket, distutils is only used:
Both of these are unsolvable even in python 3.11 nightly, for different reasons. |
Thank you for the information FYI the 3.10 version of python in debian and ubuntu has changed its installation scheme from 'posix_prefix' to the debian-specific 'posix_local'. I think 'sysconfig.get_paths()' can be used with that version. More info https://bugs.launchpad.net/ubuntu/+source/python3.10/+bug/1967920 |
Describe the bug
The python module uses
distutils
inside the INTROSPECT_COMMAND. But distutils is deprecated with removal planned for Python 3.12. (See the What’s New entry for more information).To Reproduce
Use the meson Python module with Python 3.12
Expected behavior
Keep working.
A solution could be using
sysconfig.get_paths
. But maybe keep usingdistutils
for old versions of Python it is necessary.The text was updated successfully, but these errors were encountered: