Compare commits
1 Commits
packages/i
...
bugfix/rel
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0e39c8b1b7 |
@@ -38,6 +38,7 @@
|
||||
import spack.spec
|
||||
import spack.target
|
||||
import spack.tengine
|
||||
import spack.util.path
|
||||
import spack.variant as vt
|
||||
from spack.config import config
|
||||
from spack.package_prefs import PackagePrefs, is_spec_buildable, spec_externals
|
||||
@@ -89,7 +90,7 @@ def concretize_develop(self, spec):
|
||||
if not dev_info:
|
||||
return False
|
||||
|
||||
path = os.path.normpath(os.path.join(env.path, dev_info['path']))
|
||||
path = spack.util.path.canonicalize_path(dev_info['path'])
|
||||
|
||||
if 'dev_path' in spec.variants:
|
||||
assert spec.variants['dev_path'].value == path
|
||||
|
@@ -630,8 +630,7 @@ def _rewrite_relative_paths_on_relocation(self, init_file_dir):
|
||||
|
||||
for name, entry in self.dev_specs.items():
|
||||
dev_path = entry['path']
|
||||
expanded_path = os.path.normpath(os.path.join(
|
||||
init_file_dir, entry['path']))
|
||||
expanded_path = spack.util.path.canonicalize_path(entry['path'])
|
||||
|
||||
# Skip if the expanded path is the same (e.g. when absolute)
|
||||
if dev_path == expanded_path:
|
||||
|
@@ -45,6 +45,7 @@
|
||||
import spack.repo
|
||||
import spack.spec
|
||||
import spack.store
|
||||
import spack.util.path
|
||||
import spack.util.timer
|
||||
import spack.variant
|
||||
import spack.version
|
||||
@@ -1986,7 +1987,7 @@ def _develop_specs_from_env(spec, env):
|
||||
if not dev_info:
|
||||
return
|
||||
|
||||
path = os.path.normpath(os.path.join(env.path, dev_info['path']))
|
||||
path = spack.util.path.canonicalize_path(dev_info['path'])
|
||||
|
||||
if 'dev_path' in spec.variants:
|
||||
assert spec.variants['dev_path'].value == path
|
||||
|
Reference in New Issue
Block a user