Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix enhance_sanity_check for PythonPackage #3477

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions easybuild/easyblocks/generic/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,15 +1029,15 @@ def sanity_check_step(self, *args, **kwargs):
else:
self.log.debug("Detection of downloaded dependencies not enabled")

# inject directory path that uses %(pyshortver)s template into default value for sanity_check_paths,
# Use directory usually containing the python packages by default
# but only for stand-alone installations, not for extensions;
# this is relevant for installations of Python packages for multiple Python versions (via multi_deps)
# (we can not pass this via custom_paths, since then the %(pyshortver)s template value will not be resolved)
if not self.is_extension and not self.cfg['sanity_check_paths'] and kwargs.get('custom_paths') is None:
self.cfg['sanity_check_paths'] = {
if not self.is_extension:
kwargs.setdefault('custom_paths', {
'files': [],
'dirs': [os.path.join('lib', 'python%(pyshortver)s', 'site-packages')],
}
})

# make sure 'exts_filter' is defined, which is used for sanity check
if self.multi_python:
Expand Down