Skip to content

Replace distutils.version with packaging.version since the former was deprecated in python 3.10 and removed in 3.12. #99852

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

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

dyung
Copy link
Collaborator

@dyung dyung commented Jul 22, 2024

Attempt to reland #99549, but using packaging.version instead of looseversion, based on the usage used for LLDB in #93712.

@JDevlieghere and @mysterymath I believe this should already be fine for your bots because you already have the packaging package installed for LLDB correct?

@tlively I used this attempt to reland the change to restructure it as was suggested in #99549 to limit the scope of the import until it is needed.

I have tested this manually on both of my cross-project-test bots, and both pass once I installed the packaging package.

… deprecated in python 3.10 and removed in 3.12.
@dyung dyung requested review from JDevlieghere and tlively July 22, 2024 09:19
Copy link
Member

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this should work on GreenDragon and any other nodes that currently run the LLDB tests. LGTM.

@dyung dyung merged commit 9374216 into llvm:main Jul 22, 2024
6 checks passed
@dyung dyung deleted the dyung/main/remove-distutils-v2 branch July 22, 2024 18:28
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
… deprecated in python 3.10 and removed in 3.12. (#99852)

Attempt to reland #99549, but using packaging.version instead of
looseversion, based on the usage used for LLDB in #93712.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants