Description
With Python 3.11 release around the corner, the project needs to consider that distutils will be removed in 3.12 https://docs.python.org/3/library/distutils.html
Considering that the setuptools modules contains a copy of it under _distutils, a previous set of patches was merged to move most of the functionality away, but there are still some usages that needs to be addressed, like:
- distutils.log
- distutils.errors.DistutilsSetupError
- distutils.sysconfig
- distutils.msvc9compiler
- distutils.command.build
- distutils.cmd
and a few others.
The initial effort was done based on the Migration Advise section of the PEP related to the deprecation of distutils: https://peps.python.org/pep-0632/#migration-advice but there were still a few things that have no equivalent, and needs to have a local implementation, like distutils.log.
Attachments
For Gerrit Dashboard: PYSIDE-2079 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
437692,14 | build: replace DistutilsSetupError by SetupError | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
437693,14 | build: replace distutils.log by simple logger | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
437694,16 | build: replace distutils.cmd.Command and sysconfig | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
437695,16 | build: rename DistUtilsCommandMixin to CommandMixin | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
437696,13 | build: bump setuptools required version | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |