Fix tclsh command for transitive dependencies (#7566)
This commit is contained in:
parent
a37acfc1e9
commit
213a3de539
1 changed files with 9 additions and 1 deletions
|
@ -70,6 +70,14 @@ def symlink_tclsh(self):
|
||||||
# ========================================================================
|
# ========================================================================
|
||||||
# Set up environment to make install easy for tcl extensions.
|
# 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
|
@property
|
||||||
def tcl_lib_dir(self):
|
def tcl_lib_dir(self):
|
||||||
|
@ -94,7 +102,7 @@ def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
|
||||||
# where a system provided tcl is run against the standard libraries
|
# where a system provided tcl is run against the standard libraries
|
||||||
# of a Spack built tcl. See issue #7128 that relates to python but
|
# of a Spack built tcl. See issue #7128 that relates to python but
|
||||||
# it boils down to the same situation we have here.
|
# 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)]
|
tcl_paths = [join_path(self.prefix, self.tcl_builtin_lib_dir)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue