summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_systems/python.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py
index 824d634b3e..e3df3ab374 100644
--- a/lib/spack/spack/build_systems/python.py
+++ b/lib/spack/spack/build_systems/python.py
@@ -169,6 +169,8 @@ class PythonExtension(spack.package_base.PackageBase):
fs.filter_file(
python_prefix, os.path.abspath(view.get_projection_for_spec(self.spec)), dst
)
+ else:
+ view.link(src, dst)
# Finally re-target the symlinks that point to copied files.
for src, dst in delayed_links: