pywin32 icon indicating copy to clipboard operation
pywin32 copied to clipboard

`distutils` is removed from Python 3.12 and usage with `setuptools` is deprecated

Open Avasam opened this issue 2 years ago • 4 comments

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.

Avasam avatar Sep 17 '23 20:09 Avasam

Exe installers support will need to be dropped to completely stop using distutils directly. See https://github.com/mhammond/pywin32/issues/1939

Avasam avatar Mar 12 '24 04:03 Avasam

Be nice to have a pyroject.toml

dougransom avatar Apr 09 '24 14:04 dougransom

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

Avasam avatar Jun 17 '25 19:06 Avasam

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

Avasam avatar Jun 17 '25 19:06 Avasam