summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-02-19 16:33:38 +0100
committerGitHub <noreply@github.com>2024-02-19 16:33:38 +0100
commit0ee3a3c401f248e50fa4ca4ac46acc63f630d60c (patch)
treeee981487ef529a670710e0921071b26fe78bbaac /lib
parentad6dc0d103d334fb2759532a6ab1d5124996ebeb (diff)
downloadspack-0ee3a3c401f248e50fa4ca4ac46acc63f630d60c.tar.gz
spack-0ee3a3c401f248e50fa4ca4ac46acc63f630d60c.tar.bz2
spack-0ee3a3c401f248e50fa4ca4ac46acc63f630d60c.tar.xz
spack-0ee3a3c401f248e50fa4ca4ac46acc63f630d60c.zip
Use relative target in symlinks to modified files in view (#42699)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py
index e3df3ab374..f554bfef53 100644
--- a/lib/spack/spack/build_systems/python.py
+++ b/lib/spack/spack/build_systems/python.py
@@ -180,7 +180,7 @@ class PythonExtension(spack.package_base.PackageBase):
except (OSError, KeyError):
target = None
if target:
- os.symlink(target, dst)
+ os.symlink(os.path.relpath(target, os.path.dirname(dst)), dst)
else:
view.link(src, dst, spec=self.spec)