Skip to content

Commit

Permalink
merge with 5.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Feb 7, 2024
1 parent c6d7fb2 commit 393955a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions easybuild/easyblocks/p/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,16 +376,19 @@ def configure_step(self):
if tcltk_maj_min_ver != '.'.join(tkver.split('.')[:2]):
raise EasyBuildError("Tcl and Tk major/minor versions don't match: %s vs %s", tclver, tkver)

self.cfg.update('configopts', "--with-tcltk-includes='-I%s/include -I%s/include'" % (tcl, tk))

tcl_libdir = os.path.join(tcl, get_software_libdir('Tcl'))
tk_libdir = os.path.join(tk, get_software_libdir('Tk'))
tcltk_libs = "-L%(tcl_libdir)s -L%(tk_libdir)s -ltcl%(maj_min_ver)s -ltk%(maj_min_ver)s" % {
'tcl_libdir': tcl_libdir,
'tk_libdir': tk_libdir,
'maj_min_ver': tcltk_maj_min_ver,
}
self.cfg.update('configopts', "--with-tcltk-libs='%s'" % tcltk_libs)
if LooseVersion(self.version) < '3.11':
self.cfg.update('configopts', "--with-tcltk-includes='-I%s/include -I%s/include'" % (tcl, tk))
self.cfg.update('configopts', "--with-tcltk-libs='%s'" % tcltk_libs)
else:
env.setvar('TCLTK_CFLAGS', '-I%s/include -I%s/include' % (tcl, tk))
env.setvar('TCLTK_LIBS', tcltk_libs)

# don't add user site directory to sys.path (equivalent to python -s)
# This matters e.g. when python installs the bundled pip & setuptools (for >= 3.4)
Expand Down

0 comments on commit 393955a

Please sign in to comment.