`distutils` is removed from Python 3.12 and usage with `setuptools` is deprecated
See:
- https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools
- https://peps.python.org/pep-0632/#migration-advice
- https://github.com/pypa/packaging-problems/issues/127
- https://github.com/pypa/setuptools/issues/3625
- https://github.com/pypa/setuptools/issues/3622
- https://github.com/pypa/setuptools/issues/4137
- https://docs.python.org/3.11/distutils/
The entire distutils package has been deprecated and will be removed in Python 3.12
- https://docs.python.org/3.12/distutils/ (empty page, now lives at https://setuptools.pypa.io/en/latest/deprecated/distutils/ )
Since pywin32 already imports setuptools, the module will still be found with Python 3.12, but falls in the "deprecated" category.
Exe installers support will need to be dropped to completely stop using distutils directly. See https://github.com/mhammond/pywin32/issues/1939
Be nice to have a pyroject.toml
Be nice to have a pyroject.toml
@dougransom There is as of https://github.com/mhammond/pywin32/pull/2498/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
Should be included in b311
I opened an issue and PR to handle mc compiler compilation order upstream
- https://github.com/pypa/setuptools/issues/4986
- https://github.com/pypa/distutils/pull/370