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 · 4 comments
Closed

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

boegel opened this issue Feb 11, 2022 · 4 comments
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

@haampie
Copy link

haampie commented Nov 14, 2024

@boegel can you reopen? there are still distutils remnants

from distutils import log
from distutils.core import setup

having setuptools installed does not mean that distutils can be imported.

See cython/cython#5754 (comment)

@boegel
Copy link
Member Author

boegel commented Nov 14, 2024

Let's follow up in #4478, I've re-opened that, maybe we overlooked something indeed...

@haampie Thanks for raising this!

@boegel boegel reopened this Nov 14, 2024
@boegel boegel moved this to Blockers in EasyBuild v5.0 Nov 14, 2024
@boegel
Copy link
Member Author

boegel commented Dec 4, 2024

fixed with #4478

@boegel boegel closed this as completed Dec 4, 2024
@boegel boegel removed this from EasyBuild v5.0 Dec 11, 2024
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

3 participants