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

distutils deprecated #28

Open
osvenskan opened this issue Feb 22, 2021 · 1 comment
Open

distutils deprecated #28

osvenskan opened this issue Feb 22, 2021 · 1 comment

Comments

@osvenskan
Copy link
Owner

Per PEP 632, distutils will raise a deprecation warning as of Python 3.10 and will be totally gone as of Python 3.12. posix_ipc's setup.py uses distutils so that needs to be fixed.

https://www.python.org/dev/peps/pep-0632/

@osvenskan
Copy link
Owner Author

For the upcoming version of posix_ipc (1.1.0), the reference to distutils is still in the code. It's only imported when setuptools is not present. I think setuptools is part of most Python distros now, so the import of distutils is unlikely to happen. (I guess I'll find out if I start to get feedback about deprecation warnings.) At this time, continuing to use distutils as a fallback when setuptools isn't available feels like the most robust solution. Here's where I changed the relevant comment in the source code.

4ad40e7

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