comtypes
comtypes copied to clipboard
Adapt to distutils being removed in 3.12
Creating an issue about this for tracking. 3.10 release notes mark distutils as deprecated and set a date for removal https://docs.python.org/3.10/whatsnew/3.10.html#distutils
This links to https://github.com/enthought/comtypes/issues/216 in a way that it might or might not be harder to keep supporting Python 2 once distutils is gone.
It would be good to work on this issue at the time of dropping Python 2.7 from support.
(related to #392)
NOTE:
from https://github.com/enthought/comtypes/issues/229#issuecomment-1242956971
Assumed first changes
https://github.com/enthought/comtypes/blob/cc9a0131edc76bd92073f75e9737aad40cd10c58/setup.py#L7-L11
↓
from setuptools import Command, setup from setuptools.command.install import install from setuptools.command.build_py import build_py
1.2.1 uses setuptools and supports both Python 3.12 and still Python 2.7. I think the issue can be closed.