-
Notifications
You must be signed in to change notification settings - Fork 68
update software installation script for EESSI 2021.02 pilot #75
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8bf6838
update software installation script for EESSI 2021.02 pilot (fixes #7…
boegel 51d4841
don't filter pkg-config, filter Lua for 2021.02 pilot
boegel 7ddf6f5
fix creating Lmod cache, pass correct location to update_lmod_system_…
boegel 68d5012
skip test step for SciPy-bundle on aarch64 (see #55)
boegel 55c2974
use EasyBuild hooks file to customise installtions of fontconfig, CGA…
boegel 99373ae
fix ok/fail messages for CMake installation
boegel 825fae2
add basic gitignore
boegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| *.pyc | ||
| *.pyo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Hooks to customize how EasyBuild installs software in EESSI | ||
| # see https://docs.easybuild.io/en/latest/Hooks.html | ||
| import os | ||
|
|
||
| from easybuild.tools.build_log import EasyBuildError, print_msg | ||
| from easybuild.tools.systemtools import POWER, get_cpu_architecture | ||
|
|
||
|
|
||
| def parse_hook(ec, *args, **kwargs): | ||
| """Main parse hook: trigger custom functions based on software name.""" | ||
|
|
||
| # determine path to Prefix installation in compat layer via $EPREFIX | ||
| eprefix = os.getenv('EPREFIX') | ||
| if eprefix is None: | ||
| raise EasyBuildError("$EPREFIX is not defined!") | ||
|
|
||
| if ec.name in PARSE_HOOKS: | ||
| PARSE_HOOKS[ec.name](ec, eprefix) | ||
|
|
||
|
|
||
| def cgal_toolchainopts_precise(ec, eprefix): | ||
| """Enable 'precise' rather than 'strict' toolchain option for CGAL on POWER.""" | ||
| if ec.name == 'CGAL': | ||
| if get_cpu_architecture() == POWER: | ||
| # 'strict' implies '-mieee-fp', which is not supported on POWER | ||
| # see https://github.com/easybuilders/easybuild-framework/issues/2077 | ||
| ec['toolchainopts']['strict'] = False | ||
| ec['toolchainopts']['precise'] = True | ||
| print_msg("Tweaked toochainopts for %s: %s", ec.name, ec['toolchainopts']) | ||
| else: | ||
| raise EasyBuildError("CGAL-specific hook triggered for non-CGAL easyconfig?!") | ||
|
|
||
|
|
||
| def fontconfig_add_fonts(ec, eprefix): | ||
| """Inject --with-add-fonts configure option for fontconfig.""" | ||
| if ec.name == 'fontconfig': | ||
| # make fontconfig aware of fonts included with compat layer | ||
| with_add_fonts = '--with-add-fonts=%s' % os.path.join(eprefix, 'usr', 'share', 'fonts') | ||
| ec.update('configopts', with_add_fonts) | ||
| print_msg("Added '%s' configure option for %s", with_add_fonts, ec.name) | ||
| else: | ||
| raise EasyBuildError("fontconfig-specific hook triggered for non-fontconfig easyconfig?!") | ||
|
|
||
|
|
||
| def ucx_eprefix(ec, eprefix): | ||
| """Make UCX aware of compatibility layer via additional configuration options.""" | ||
| if ec.name == 'UCX': | ||
| ec.update('configopts', '--with-sysroot=%s' % eprefix) | ||
| ec.update('configopts', '--with-rdmacm=%s' % os.path.join(eprefix, 'usr')) | ||
| print_msg("Using custom configure option for %s: %s", ec.name, ec['configopts']) | ||
| else: | ||
| raise EasyBuildError("UCX-specific hook triggered for non-UCX easyconfig?!") | ||
|
|
||
|
|
||
| PARSE_HOOKS = { | ||
| 'CGAL': cgal_toolchainopts_precise, | ||
| 'fontconfig': fontconfig_add_fonts, | ||
| 'UCX': ucx_eprefix, | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.