Commit f56309a
authored
[compiler-rt][test] Use packaging.version.Version to compare glibc versions (#142596)
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 #543371 parent 3a7da9a commit f56309a
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | | - | |
| 718 | + | |
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
| 730 | + | |
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
| |||
0 commit comments