Skip to content

Deprecated distutils module in Python 3.12#2948

Merged
Lestropie merged 1 commit intomasterfrom
no_distutils
Jul 31, 2024
Merged

Deprecated distutils module in Python 3.12#2948
Lestropie merged 1 commit intomasterfrom
no_distutils

Conversation

@Lestropie
Copy link
Member

This fix is exclusively for master / 3.0.x, to support Python 3.12 whilst preserving Python2 support. On dev, Python2 support has been dropped, and shutil.which() is used by name.

./run_tests scripts successful.

Can't fully verify via CI as Python2 support is not explicitly tested. No particular interest in doing so either; would prefer to focus on testing the range of Python3 versions supported (#2821) for 3.1. So hopefully this can be reviewed from first principles.

@Lestropie Lestropie requested a review from a team July 29, 2024 09:40
@Lestropie Lestropie self-assigned this Jul 29, 2024
daljit46
daljit46 previously approved these changes Jul 29, 2024
For 3.0.x, alias shutil.which() as find_executable(); load distutils.find_executable() as itself on Python 2.
Reverts and replaces fcf0ba9, which had erroneous indentation.
@Lestropie Lestropie added this pull request to the merge queue Jul 31, 2024
Merged via the queue into master with commit e7f540b Jul 31, 2024
@Lestropie Lestropie deleted the no_distutils branch July 31, 2024 00:43
@Lestropie Lestropie mentioned this pull request Jan 14, 2025
31 tasks
@Lestropie Lestropie restored the no_distutils branch August 26, 2025 08:11
@Lestropie Lestropie deleted the no_distutils branch August 27, 2025 00:26
@Lestropie Lestropie mentioned this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants