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
16ce0da2
Commit
16ce0da2
authored
3 years ago
by
Damian Alvarez
Browse files
Options
Downloads
Patches
Plain Diff
To don't run the dependency tweaker on the CI, so we catch mistakes
parent
0c7f1ab6
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
+18
-17
18 additions, 17 deletions
Custom_Hooks/eb_hooks.py
with
18 additions
and
17 deletions
Custom_Hooks/eb_hooks.py
+
18
−
17
View file @
16ce0da2
...
@@ -86,7 +86,6 @@ REQUIRE_MODALTSOFTNAME = {
...
@@ -86,7 +86,6 @@ REQUIRE_MODALTSOFTNAME = {
def
installation_vetoer
(
ec
):
def
installation_vetoer
(
ec
):
"
Check whether this package is NOT supposed to be installed in this system, and abort if necessary
"
"
Check whether this package is NOT supposed to be installed in this system, and abort if necessary
"
if
os
.
getenv
(
'
CI
'
)
is
None
:
name
=
ec
[
'
name
'
]
name
=
ec
[
'
name
'
]
system_name
=
os
.
getenv
(
'
LMOD_SYSTEM_NAME
'
)
system_name
=
os
.
getenv
(
'
LMOD_SYSTEM_NAME
'
)
if
system_name
is
None
:
if
system_name
is
None
:
...
@@ -205,6 +204,7 @@ def parse_hook(ec, *args, **kwargs):
...
@@ -205,6 +204,7 @@ def parse_hook(ec, *args, **kwargs):
"""
Custom parse hook to manage installations intended for JSC systems.
"""
"""
Custom parse hook to manage installations intended for JSC systems.
"""
# First of all check if this should be installed
# First of all check if this should be installed
if
os
.
getenv
(
'
CI
'
)
is
None
:
installation_vetoer
(
ec
)
installation_vetoer
(
ec
)
# Process compiler options
# Process compiler options
...
@@ -225,6 +225,7 @@ def parse_hook(ec, *args, **kwargs):
...
@@ -225,6 +225,7 @@ def parse_hook(ec, *args, **kwargs):
ec
=
inject_site_contact_and_user_labels
(
ec
)
ec
=
inject_site_contact_and_user_labels
(
ec
)
if
os
.
getenv
(
'
CI
'
)
is
None
:
ec
=
tweak_dependencies
(
ec
)
ec
=
tweak_dependencies
(
ec
)
# If we are parsing we are not searching, in this case if the easyconfig is
# If we are parsing we are not searching, in this case if the easyconfig is
...
...
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