Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
easybuild-repository-public-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DEEP-SEA
easybuild-repository-public-release
Commits
92566b15
Commit
92566b15
authored
2 years ago
by
Sebastian Achilles
Browse files
Options
Downloads
Patches
Plain Diff
update EB hooks: add Perl and Python tweaks
parent
10ca6763
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Custom_Hooks/eb_hooks.py
+56
-8
56 additions, 8 deletions
Custom_Hooks/eb_hooks.py
with
56 additions
and
8 deletions
Custom_Hooks/eb_hooks.py
+
56
−
8
View file @
92566b15
...
...
@@ -72,14 +72,14 @@ VETOED_INSTALLATIONS = {
TWEAKABLE_DEPENDENCIES
=
{
'
UCX
'
:
'
default
'
,
'
CUDA
'
:
'
11.5
'
,
'
Mesa
'
:
(
'
OpenGL
'
,
'
202
1b
'
),
'
libglvnd
'
:
(
'
OpenGL
'
,
'
202
1b
'
),
'
libxc
'
:
'
5.1.7
'
,
'
glu
'
:
(
'
OpenGL
'
,
'
202
1b
'
),
'
glew
'
:
(
'
OpenGL
'
,
'
202
1b
'
),
'
Boost
'
:
'
1.78.0
'
,
'
Boost.Python
'
:
'
1.78.0
'
,
#
'CUDA': '11.5',
'
Mesa
'
:
(
'
OpenGL
'
,
'
202
2a
'
),
'
libglvnd
'
:
(
'
OpenGL
'
,
'
202
2a
'
),
#
'libxc': '5.1.7',
'
glu
'
:
(
'
OpenGL
'
,
'
202
2a
'
),
'
glew
'
:
(
'
OpenGL
'
,
'
202
2a
'
),
#
'Boost': '1.78.0',
#
'Boost.Python': '1.78.0',
}
SIDECOMPILERS
=
[
'
AOCC
'
,
'
Clang
'
]
...
...
@@ -233,6 +233,12 @@ def parse_hook(ec, *args, **kwargs):
# Process UCX options
ec
=
inject_ucx_tweaks
(
ec
)
# Process Perl module
ec
=
inject_perl_tweaks
(
ec
)
# Process Python module
ec
=
inject_python_tweaks
(
ec
)
# Change module name if applicable
ec
=
inject_modaltsoftname
(
ec
)
...
...
@@ -484,6 +490,48 @@ def inject_compiler_tweaks(ec):
return
ec
def
inject_perl_tweaks
(
ec
):
# Perl require to load Perl-JSC-extra
ec_dict
=
ec
.
asdict
()
if
ec
.
name
in
'
Perl
'
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
key
=
"
modluafooter
"
value
=
'''
if mode()==
"
load
"
then
try_load(
"
Perl-JSC-extra
"
)
end
'''
if
key
in
ec_dict
:
if
not
value
in
ec_dict
[
key
]:
ec
[
key
]
=
"
\n
"
.
join
([
ec
[
key
],
value
])
else
:
ec
[
key
]
=
value
ec
.
log
.
info
(
"
[parse hook] Injecting Perl-JSC-extra loading
"
)
return
ec
def
inject_python_tweaks
(
ec
):
# Python require to load Python-JSC-extra
ec_dict
=
ec
.
asdict
()
if
ec
.
name
in
'
Python
'
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
key
=
"
modluafooter
"
value
=
'''
if mode()==
"
load
"
then
try_load(
"
Python-JSC-extra
"
)
end
'''
if
key
in
ec_dict
:
if
not
value
in
ec_dict
[
key
]:
ec
[
key
]
=
"
\n
"
.
join
([
ec
[
key
],
value
])
else
:
ec
[
key
]
=
value
ec
.
log
.
info
(
"
[parse hook] Injecting Python-JSC-extra loading
"
)
return
ec
def
pre_ready_hook
(
self
,
*
args
,
**
kwargs
):
"
When we are building something, do some checks for bad behaviour
"
ec
=
self
.
cfg
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment