-
Notifications
You must be signed in to change notification settings - Fork 14
Fix tarball naming for CPU-only tarballs #65
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
Changes from all commits
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Hooks to customize how EasyBuild installs software in EESSI | ||
# see https://docs.easybuild.io/en/latest/Hooks.html | ||
# DUMMY CHANGE, DONT MERGE | ||
import ast | ||
import datetime | ||
import glob | ||
|
@@ -151,7 +152,7 @@ def parse_list_of_dicts_env(var_name): | |
if not re.match(r'^[A-Za-z_][A-Za-z0-9_]*$', var_name): | ||
raise ValueError(f"Invalid environment variable name: {var_name}") | ||
list_string = os.getenv(var_name, '[]') | ||
|
||
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. I guess this is just so there's something to include in generated tarball? 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. Yes, remove any changes to Also, this removal of whitespace is some 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. (there's a reason I opened the PR in draft mode ;-) I'll put it on ready to review after removing this) |
||
list_of_dicts = [] | ||
try: | ||
# Try JSON format first | ||
|
@@ -162,7 +163,7 @@ def parse_list_of_dicts_env(var_name): | |
list_of_dicts = ast.literal_eval(list_string) | ||
except (ValueError, SyntaxError): | ||
raise ValueError(f"Environment variable '{var_name}' does not contain a valid list of dictionaries.") | ||
|
||
return list_of_dicts | ||
|
||
|
||
|
@@ -211,7 +212,7 @@ def post_ready_hook(self, *args, **kwargs): | |
parallel = self.parallel | ||
else: | ||
parallel = self.cfg['parallel'] | ||
|
||
if parallel == 1: | ||
return # no need to limit if already using 1 core | ||
|
||
|
@@ -733,7 +734,7 @@ def pre_configure_hook_score_p(self, *args, **kwargs): | |
def pre_configure_hook_vsearch(self, *args, **kwargs): | ||
""" | ||
Pre-configure hook for VSEARCH | ||
- Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179 | ||
- Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179 | ||
(solves "expected initializer before 'OF'" errors) | ||
""" | ||
if self.name == 'VSEARCH': | ||
|
Uh oh!
There was an error while loading. Please reload this page.