Build Python with Tkinter support

This commit is contained in:
Adam J. Stewart
2016-07-12 11:38:13 -05:00
parent b3789a4693
commit 583232ea52
3 changed files with 48 additions and 6 deletions

View File

@@ -44,6 +44,12 @@ def url_for_version(self, version):
depends_on('zlib')
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)