-
Notifications
You must be signed in to change notification settings - Fork 209
add support for specifying dependencies required to obtain source files via source_deps
easyconfig parameter
#4766
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
base: develop
Are you sure you want to change the base?
Changes from all commits
e7a27c9
ab95e29
64c539b
f3b6e32
3c97d1e
0db8fd2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2574,6 +2574,14 @@ def fetch_step(self, skip_checksums=False): | |
raise EasyBuildError("EasyBuild-version %s is newer than the currently running one. Aborting!", | ||
easybuild_version) | ||
|
||
source_deps = self.cfg['source_deps'] | ||
pre_fetch_env = None | ||
# load modules for source dependencies (if any) | ||
if source_deps: | ||
pre_fetch_env = copy.deepcopy(os.environ) | ||
source_deps_mod_names = [d['short_mod_name'] for d in source_deps] | ||
self.modules_tool.load(source_deps_mod_names) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @PetrKralCZ Before trying to load modules, we need to take into account that If so, then we need to re-initialize This will need changes in |
||
|
||
start_progress_bar(PROGRESS_BAR_DOWNLOAD_ALL, self.cfg.count_files()) | ||
|
||
if self.dry_run: | ||
|
@@ -2659,6 +2667,9 @@ def fetch_step(self, skip_checksums=False): | |
|
||
stop_progress_bar(PROGRESS_BAR_DOWNLOAD_ALL) | ||
|
||
if pre_fetch_env: | ||
restore_env(pre_fetch_env) | ||
|
||
def checksum_step(self): | ||
"""Verify checksum of sources and patches, if a checksum is available.""" | ||
for fil in self.src + self.patches: | ||
|
Uh oh!
There was an error while loading. Please reload this page.