Skip to content

Commit

Permalink
Don't manipulate setup.py for Python 3.12+
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Apr 22, 2024
1 parent b6a05c9 commit a2be222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/easyblocks/p/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ def patch_step(self, *args, **kwargs):
# if we're installing Python with an alternate sysroot,
# we need to patch setup.py which includes hardcoded paths like /usr/include and /lib64;
# this fixes problems like not being able to build the _ssl module ("Could not build the ssl module")
# Python 3.12 doesn't have setup.py any more
sysroot = build_option('sysroot')
if sysroot:
if sysroot and LooseVersion(self.version) < LooseVersion('3.12'):
sysroot_inc_dirs, sysroot_lib_dirs = [], []

for pattern in ['include*', os.path.join('usr', 'include*')]:
Expand Down

0 comments on commit a2be222

Please sign in to comment.