For Tk, also provide a symlink for wishX.X. (#5161)

+ gitk (and possibly other tools) expect to find the Tk executable `wish`, so
  add a symlink with this name that points to the the versioned filename.
+ Example: `wish --> wish8.6`
This commit is contained in:
Kelly (KT) Thompson 2017-08-18 15:01:02 -06:00 committed by Adam J. Stewart
parent d6d2dff324
commit c41c5bc9b8

View File

@ -53,3 +53,8 @@ def setup_environment(self, spack_env, run_env):
def configure_args(self):
spec = self.spec
return ['--with-tcl={0}'.format(spec['tcl'].prefix.lib)]
@run_after('install')
def symlink_wish(self):
with working_dir(self.prefix.bin):
symlink('wish{0}'.format(self.version.up_to(2)), 'wish')