Skip to content

Commit 2fc0ea1

Browse files
committed
respect EB configuration option to ignore unversioned (0.0.0) python packages
1 parent ac2b2f9 commit 2fc0ea1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

easybuild/easyblocks/p/python.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ def run_pip_check(python_cmd=None, unversioned_packages=None):
186186

187187
if python_cmd is None:
188188
python_cmd = 'python'
189-
if unversioned_packages is None:
189+
if build_option('ignore_pip_unversioned_pkgs'):
190+
unversioned_packages = list(set(build_option('ignore_pip_unversioned_pkgs') + unversioned_packages))
191+
elif unversioned_packages is None:
190192
unversioned_packages = []
191193

192194
pip_check_cmd = f"{python_cmd} -m pip check"

0 commit comments

Comments
 (0)