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 #14

Closed
panlinux opened this issue Feb 4, 2022 · 1 comment
Assignees

Comments

@panlinux
Copy link

panlinux commented Feb 4, 2022

Hi,

when building lazygal with python 3.10, I get this warning:

$ python3 ./setup.py 
/home/ubuntu/git/packages/lazygal/lazygal/./setup.py:20: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.core import setup, Command
/home/ubuntu/git/packages/lazygal/lazygal/./setup.py:21: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
  import distutils.sysconfig

PEP-632 is at https://www.python.org/dev/peps/pep-0632/

Porting from distutils: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html

The advice for disutils.sysconfig is to use the stdlib sysconfig module.

@niol niol self-assigned this Feb 4, 2022
@niol
Copy link
Owner

niol commented Mar 6, 2022

Fixed with b543350

@niol niol closed this as completed Mar 6, 2022
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

2 participants