summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-06-03 09:45:13 -0700
committerGitHub <noreply@github.com>2020-06-03 09:45:13 -0700
commit3347ef2de4e08374750eb68f750800c1854d595f (patch)
treec98cf95a8322592606adc059493547ac2dcfceb9 /var
parent7aa9cb0f7a40639852dedb00cc2ecff847a3413b (diff)
downloadspack-3347ef2de4e08374750eb68f750800c1854d595f.tar.gz
spack-3347ef2de4e08374750eb68f750800c1854d595f.tar.bz2
spack-3347ef2de4e08374750eb68f750800c1854d595f.tar.xz
spack-3347ef2de4e08374750eb68f750800c1854d595f.zip
Feature: add option to create view by copying/relocating files (#16480)
* add subcommand `spack view copy/relocate` * update bash completions * add copy/relocate commands to view tests * allow copied views to be removed
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/python/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 7a269f8a1d..2311f6ad39 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -962,7 +962,7 @@ class Python(AutotoolsPackage):
bin_dir = self.spec.prefix.bin
for src, dst in merge_map.items():
if not path_contains_subdirectory(src, bin_dir):
- view.link(src, dst)
+ view.link(src, dst, spec=self.spec)
elif not os.path.islink(src):
copy(src, dst)
if 'script' in get_filetype(src):
@@ -988,7 +988,7 @@ class Python(AutotoolsPackage):
orig_link_target = os.path.join(self.spec.prefix, realpath_rel)
new_link_target = os.path.abspath(merge_map[orig_link_target])
- view.link(new_link_target, dst)
+ view.link(new_link_target, dst, spec=self.spec)
def remove_files_from_view(self, view, merge_map):
bin_dir = self.spec.prefix.bin