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

DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. #34

Open
hakonhagland opened this issue Dec 13, 2021 · 2 comments

Comments

@hakonhagland
Copy link
Contributor

I am trying to install on Windows 11 with Python version 3.10.1:

>perl Makefile.PL
Found these python executables on your PATH:
1. C:\Users\hakon\AppData\Local\Programs\Python\Python310\/python.exe
2. C:\Users\hakon\AppData\Local\Microsoft\WindowsApps/python3.exe
3. C:\Users\hakon\AppData\Local\Microsoft\WindowsApps/python.exe
Using the only python 3 executable I could find even though python 2 was also found
Set the INLINE_PYTHON_EXECUTABLE environment variable to the full path to your python executable to override this selection.
Using C:\Users\hakon\AppData\Local\Programs\Python\Python310\/python.exe
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead

This python's configuration files are messed up. You'll have have to
answer the questions yourself. Here is what Python said:

   Extra Libs:  None
   Python Library:  <string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
C:\Users\hakon\AppData\Local\Programs\Python\Python310\libs/<string>:1:.\
   Include Path:    C:\Users\hakon\AppData\Local\Programs\Python\Python310\Include

        1. LIBS option. I need to know what extra libraries, if any,
           are required by this build of python. I recommend this:
           None

Enter extra libraries (e.g. -lfoo -lbar) [None]
hakonhagland added a commit to hakonhagland/inline-python-pm that referenced this issue Dec 13, 2021
Fixes issue niner#34. Also adds support for macOS and addresses issue niner#29.
@hakonhagland
Copy link
Contributor Author

Added a pull request that should fix this, see #35.

@hakonhagland
Copy link
Contributor Author

See also this issue on stackoverflow.com

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

No branches or pull requests

1 participant