Skip to content

Commit

Permalink
Merge pull request #2687 from boegel/20220221181457_new_pr_python
Browse files Browse the repository at this point in the history
avoid dependency on 'which' command in sanity check for Python, use 'command -v' instead
  • Loading branch information
SebastianAchilles authored Mar 4, 2022
2 parents acc5197 + abad96c commit c889aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easybuild/easyblocks/p/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def sanity_check_step(self):

abiflags = ''
if LooseVersion(self.version) >= LooseVersion("3"):
run_cmd("which python", log_all=True, simple=False, trace=False)
run_cmd("command -v python", log_all=True, simple=False, trace=False)
cmd = 'python -c "import sysconfig; print(sysconfig.get_config_var(\'abiflags\'));"'
(abiflags, _) = run_cmd(cmd, log_all=True, simple=False, trace=False)
if not abiflags:
Expand Down

0 comments on commit c889aa8

Please sign in to comment.