Skip to content

Conversation

DavidSpickett
Copy link
Collaborator

Instead of distutils.LooseVersion. distutils was depracated (https://peps.python.org/pep-0632/) and has been removed in Python 3.12 (https://docs.python.org/3/whatsnew/3.12.html)

Of note, the distutils package has been removed from the standard library.

packaging's version is able to handle glibc's major.minor: https://packaging.pypa.io/en/latest/version.html#packaging.version.Version

For these modules or types, use the standards-defined Python Packaging Authority packages specified:
distutils.version — use the packaging package

Relates to #54337

…rsions

Instead of distutils.LooseVersion. distutils was depracated
(https://peps.python.org/pep-0632/) and has been removed in
Python 3.12 (https://docs.python.org/3/whatsnew/3.12.html)

> Of note, the distutils package has been removed from the standard library.

packaging's version is able to handle glibc's major.minor:
https://packaging.pypa.io/en/latest/version.html#packaging.version.Version

> For these modules or types, use the standards-defined Python Packaging Authority packages specified:
> distutils.version — use the packaging package

Relates to llvm#54337
@DavidSpickett
Copy link
Collaborator Author

Might require packaging to be installed on some buildbots. Linaro gets it from the python3-packaging apt package. I will go through zorg and make a list of bots that might be effected.

@DavidSpickett
Copy link
Collaborator Author

I will go through zorg and make a list of bots that might be effected.

On second thought, this is going to take me an age. So I suggest reviewers take a look first, and then I will contact bot owners.

@DavidSpickett
Copy link
Collaborator Author

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.

3 participants