summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2022-05-28 20:04:18 +0200
committerGreg Becker <becker33@llnl.gov>2022-05-28 20:18:13 +0200
commiteef202ea855c64447721ce5c11242e14f5e188bf (patch)
tree7c29d3be0ea5fe11c1a616cbbf764ce2a04b3c87
parent4c6564f10aa516bc00c1d7dbfdeafe35128985fe (diff)
downloadspack-eef202ea855c64447721ce5c11242e14f5e188bf.tar.gz
spack-eef202ea855c64447721ce5c11242e14f5e188bf.tar.bz2
spack-eef202ea855c64447721ce5c11242e14f5e188bf.tar.xz
spack-eef202ea855c64447721ce5c11242e14f5e188bf.zip
fix dev paths for deps
-rw-r--r--lib/spack/spack/solver/asp.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py
index 1b3eb8b1a8..d3348dc6ba 100644
--- a/lib/spack/spack/solver/asp.py
+++ b/lib/spack/spack/solver/asp.py
@@ -1882,9 +1882,14 @@ class SpackSolverSetup(object):
# Inject dev_path from environment
env = ev.active_environment()
if env:
- for spec in sorted(specs):
- for dep in spec.traverse():
- _develop_specs_from_env(dep, env)
+ for name, info in env.dev_specs.items():
+ dev_spec = spack.spec.Spec(info['spec'])
+ dev_spec.constrain(
+ 'dev_path=%s' % spack.util.path.canonicalize_path(info['path'])
+ )
+
+ self.condition(spack.spec.Spec(name), dev_spec,
+ msg="%s is a develop spec" % name)
self.gen.h1('Spec Constraints')
self.literal_specs(specs)