Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c85968

Browse files
committed
RF: disable build-time link against TCL/Tk
Disable link to TCL / Tk libraries now we are loading symbols at run-time.
1 parent fc5d060 commit 1c85968

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

setupext.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,17 +1726,12 @@ def add_flags(self, ext):
17261726
# includes are directly in the conda\library\include dir and
17271727
# libs in DLL or lib
17281728
ext.include_dirs.extend(['include'])
1729-
ext.libraries.extend(['tk85', 'tcl85'])
1730-
ext.library_dirs.extend(['dlls']) # or lib?
17311729
else:
17321730
major, minor1, minor2, s, tmp = sys.version_info
17331731
if sys.version_info[0:2] < (3, 4):
17341732
ext.include_dirs.extend(['win32_static/include/tcl85'])
1735-
ext.libraries.extend(['tk85', 'tcl85'])
17361733
else:
17371734
ext.include_dirs.extend(['win32_static/include/tcl86'])
1738-
ext.libraries.extend(['tk86t', 'tcl86t'])
1739-
ext.library_dirs.extend([os.path.join(sys.prefix, 'dlls')])
17401735

17411736
elif sys.platform == 'darwin':
17421737
# this config section lifted directly from Imaging - thanks to
@@ -1781,10 +1776,7 @@ def add_flags(self, ext):
17811776
# not found...
17821777

17831778
# tk_include_dirs.append('/usr/X11R6/include')
1784-
frameworks = ['-framework', 'Tcl', '-framework', 'Tk']
17851779
ext.include_dirs.extend(tk_include_dirs)
1786-
ext.extra_link_args.extend(frameworks)
1787-
ext.extra_compile_args.extend(frameworks)
17881780

17891781
# you're still here? ok we'll try it this way...
17901782
else:
@@ -1817,8 +1809,6 @@ def add_flags(self, ext):
18171809
(tcl_lib_dir, tcl_inc_dir, tcl_lib,
18181810
tk_lib_dir, tk_inc_dir, tk_lib) = result
18191811
ext.include_dirs.extend([tcl_inc_dir, tk_inc_dir])
1820-
ext.library_dirs.extend([tcl_lib_dir, tk_lib_dir])
1821-
ext.libraries.extend([tcl_lib, tk_lib])
18221812

18231813

18241814
class BackendGtk(OptionalBackendPackage):

0 commit comments

Comments
 (0)