posix_ipc
posix_ipc copied to clipboard
distutils deprecated
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/
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.
https://github.com/osvenskan/posix_ipc/commit/4ad40e7128caf8a66183116b28d0d490d87bd1cb