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

stop relying on distutils (will no longer be available in Python 3.12) #3963

Closed
boegel opened this issue Feb 11, 2022 · 1 comment
Closed
Assignees
Milestone

Comments

@boegel
Copy link
Member

boegel commented Feb 11, 2022

distutils is deprecated since Python 3.10, will be removed in Python 3.12; see https://www.python.org/dev/peps/pep-0632

Places we rely on distutils currently:

@boegel boegel added this to the 4.x milestone Feb 11, 2022
@boegel boegel changed the title stop relying on distutils stop relying on distutils (will no longer be available in Python 3.12) Feb 16, 2022
@boegel boegel modified the milestones: 4.x, 5.0 Mar 3, 2024
@boegel boegel added the EasyBuild-5.0 EasyBuild 5.0 label Mar 3, 2024
bartoldeman added a commit to bartoldeman/easybuild-framework that referenced this issue Mar 6, 2024
distutils was removed in Python 3.12. The only reason EasyBuild uses
StrictVersion is that it orders beta/rc versions before the released
version, unlike LooseVersion. E.g. 5.0.0-beta < 5.0.0 (but > for
LooseVersion).

So a new method
`is_earlier_or_prerelease(self, other, markers)`
was added to LooseVersion to handle that particular case.

Addresses part of easybuilders#3963
@boegel
Copy link
Member Author

boegel commented Apr 2, 2024

All done, see #4484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants