Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated distutils module in Python 3.12 #2948

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Deprecated distutils module in Python 3.12 #2948

merged 1 commit into from
Jul 31, 2024

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
5 checks passed
@Lestropie Lestropie deleted the no_distutils branch July 31, 2024 00:43
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