diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-07-19 09:41:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-19 09:41:12 -0700 |
commit | a64a2e72cf361923b8a2e00a5b3ed87cb5d59bd2 (patch) | |
tree | 56ecd6e60ae7288fdf3ad561bb1d27068fbac453 /var/spack/repos/builtin/packages/tcl/package.py | |
parent | c4b4ce7d859a21728c5c1efbb19dffeacfa0c793 (diff) | |
parent | ea425a101a698705609698771c0542d2be70987e (diff) | |
download | spack-a64a2e72cf361923b8a2e00a5b3ed87cb5d59bd2.tar.gz spack-a64a2e72cf361923b8a2e00a5b3ed87cb5d59bd2.tar.bz2 spack-a64a2e72cf361923b8a2e00a5b3ed87cb5d59bd2.tar.xz spack-a64a2e72cf361923b8a2e00a5b3ed87cb5d59bd2.zip |
Merge pull request #1226 from adamjstewart/features/tkinter
Add Tkinter support for Python
Diffstat (limited to 'var/spack/repos/builtin/packages/tcl/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/tcl/package.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/tcl/package.py b/var/spack/repos/builtin/packages/tcl/package.py index a4d8b515bb..ef922314d8 100644 --- a/var/spack/repos/builtin/packages/tcl/package.py +++ b/var/spack/repos/builtin/packages/tcl/package.py @@ -24,6 +24,7 @@ ############################################################################## from spack import * + class Tcl(Package): """Tcl (Tool Command Language) is a very powerful but easy to learn dynamic programming language, suitable for a very wide @@ -34,9 +35,6 @@ class Tcl(Package): extensible.""" homepage = "http://www.tcl.tk" - def url_for_version(self, version): - return 'http://prdownloads.sourceforge.net/tcl/tcl%s-src.tar.gz' % version - version('8.6.5', '0e6426a4ca9401825fbc6ecf3d89a326') version('8.6.4', 'd7cbb91f1ded1919370a30edd1534304') version('8.6.3', 'db382feca91754b7f93da16dc4cdad1f') @@ -44,8 +42,18 @@ class Tcl(Package): depends_on('zlib') + def url_for_version(self, version): + base_url = 'http://prdownloads.sourceforge.net/tcl' + return '{0}/tcl{1}-src.tar.gz'.format(base_url, version) + + def setup_environment(self, spack_env, env): + # When using Tkinter from within spack provided python+tk, python + # will not be able to find Tcl/Tk unless TCL_LIBRARY is set. + env.set('TCL_LIBRARY', join_path(self.prefix.lib, 'tcl{0}'.format( + self.spec.version.up_to(2)))) + def install(self, spec, prefix): with working_dir('unix'): - configure("--prefix=%s" % prefix) + configure("--prefix={0}".format(prefix)) make() make("install") |