Skip to content

Commit

Permalink
Make sure req_py_majver and req_py_minver are always initialized (to …
Browse files Browse the repository at this point in the history
…None)
  • Loading branch information
Caspar van Leeuwen committed Sep 5, 2024
1 parent 8b47e7b commit 72c280c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions easybuild/easyblocks/generic/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ def prepare_python(self):
python = os.path.join(python_root, 'bin', 'python')
self.log.debug("Retaining 'python' command for Python dependency: %s", python)

req_py_majver = None
req_py_minver = None
if python is None:
# if no Python version requirements are specified,
# use major/minor version of Python being used in this EasyBuild session
Expand Down

0 comments on commit 72c280c

Please sign in to comment.