Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spack_tuda
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Inghirami, Gabriele
spack_tuda
Commits
36c14561
Unverified
Commit
36c14561
authored
7 months ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
fixup
parent
75f99407
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
lib/spack/spack/solver/requirements.py
+25
-14
25 additions, 14 deletions
lib/spack/spack/solver/requirements.py
with
25 additions
and
14 deletions
lib/spack/spack/solver/requirements.py
+
25
−
14
View file @
36c14561
...
...
@@ -10,6 +10,7 @@
import
spack.config
import
spack.error
import
spack.package_base
import
spack.repo
import
spack.spec
from
spack.config
import
get_mark_from_yaml_data
...
...
@@ -195,7 +196,17 @@ def reject_requirement_constraint(
self
,
pkg_name
:
str
,
*
,
constraint
:
spack
.
spec
.
Spec
,
kind
:
RequirementKind
)
->
bool
:
"""
Returns True if a requirement constraint should be rejected
"""
if
kind
==
RequirementKind
.
DEFAULT
:
# If it's a specific package requirement, it's never rejected
if
kind
!=
RequirementKind
.
DEFAULT
:
return
False
# Reject default requirements for runtimes and compilers
if
pkg_name
in
spack
.
repo
.
PATH
.
packages_with_tags
(
"
runtime
"
):
return
True
if
pkg_name
in
spack
.
repo
.
PATH
.
packages_with_tags
(
"
compiler
"
):
return
True
# Requirements under all: are applied only if they are satisfiable considering only
# package rules, so e.g. variants must exist etc. Otherwise, they are rejected.
try
:
...
...
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