Skip to content

Commit e52499f

Browse files
committed
only run 'pip check' once for Python installation
1 parent dc1bfa5 commit e52499f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

easybuild/easyblocks/p/python.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ def __init__(self, *args, **kwargs):
276276
# which is voluntarily or accidentally installed multiple times.
277277
# Example: Upgrading to a higher version after installing new dependencies.
278278
'pip_ignore_installed': False,
279-
# Python installations must be clean. Requires pip >= 9
280-
'sanity_pip_check': LooseVersion(self._get_pip_ext_version() or '0.0') >= LooseVersion('9.0'),
279+
# disable per-extension 'pip check', since it's a global check done in sanity check step of Python easyblock
280+
'sanity_pip_check': False,
281281
# EasyBuild 5
282282
'use_pip': True,
283283
}
@@ -683,6 +683,9 @@ def sanity_check_step(self):
683683
except EasyBuildError as err:
684684
raise EasyBuildError("Loading fake module failed: %s", err)
685685

686+
# global 'pip check' to verify that version requirements are met for Python packages installed as extensions
687+
run_pip_check(python_cmd='python')
688+
686689
abiflags = ''
687690
if LooseVersion(self.version) >= LooseVersion("3"):
688691
run_shell_cmd("command -v python", hidden=True)

0 commit comments

Comments
 (0)