summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorFederico Ficarelli <federico.ficarelli@gmail.com>2018-03-23 10:05:54 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-03-23 10:05:54 +0100
commit213a3de539202c5e1da5b730744ee214d8af64e7 (patch)
tree9b9dc5ed012c97d6530ee9b8ccac242bc0ddcac3 /var
parenta37acfc1e9bbd2dae1a3a18227e90763785058a6 (diff)
downloadspack-213a3de539202c5e1da5b730744ee214d8af64e7.tar.gz
spack-213a3de539202c5e1da5b730744ee214d8af64e7.tar.bz2
spack-213a3de539202c5e1da5b730744ee214d8af64e7.tar.xz
spack-213a3de539202c5e1da5b730744ee214d8af64e7.zip
Fix tclsh command for transitive dependencies (#7566)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/tcl/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/tcl/package.py b/var/spack/repos/builtin/packages/tcl/package.py
index 21a31efaf3..ab05352dc2 100644
--- a/var/spack/repos/builtin/packages/tcl/package.py
+++ b/var/spack/repos/builtin/packages/tcl/package.py
@@ -70,6 +70,14 @@ class Tcl(AutotoolsPackage):
# ========================================================================
# Set up environment to make install easy for tcl extensions.
# ========================================================================
+ @property
+ def command(self):
+ """Returns the tclsh command.
+
+ :returns: The tclsh command
+ :rtype: Executable
+ """
+ return Executable(os.path.realpath(self.prefix.bin.tclsh))
@property
def tcl_lib_dir(self):
@@ -94,7 +102,7 @@ class Tcl(AutotoolsPackage):
# where a system provided tcl is run against the standard libraries
# of a Spack built tcl. See issue #7128 that relates to python but
# it boils down to the same situation we have here.
- spack_env.prepend_path('PATH', os.path.dirname(self.prefix.bin))
+ spack_env.prepend_path('PATH', os.path.dirname(self.command.path))
tcl_paths = [join_path(self.prefix, self.tcl_builtin_lib_dir)]