--- setup.py.orig 2013-10-29 10:04:39.000000000 -0500 +++ setup.py 2016-09-27 03:00:13.000000000 -0500 @@ -1625,7 +1627,7 @@ # For 8.4a2, the X11 headers are not included. Rather than include a # complicated search, this is a hard-coded path. It could bail out # if X11 libs are not found... - include_dirs.append('/usr/X11R6/include') + #include_dirs.append('/usr/X11R6/include') frameworks = ['-framework', 'Tcl', '-framework', 'Tk'] # All existing framework builds of Tcl/Tk don't support 64-bit @@ -1663,13 +1665,7 @@ def detect_tkinter(self, inc_dirs, lib_dirs): # The _tkinter module. - # Rather than complicate the code below, detecting and building - # AquaTk is a separate method. Only one Tkinter will be built on - # Darwin - either AquaTk, if it is found, or X11 based Tk. platform = self.get_platform() - if (platform == 'darwin' and - self.detect_tkinter_darwin(inc_dirs, lib_dirs)): - return # Assume we haven't found any of the libraries or include files # The versions with dots are used on Unix, and the versions without @@ -1717,17 +1713,17 @@ if platform == 'sunos5': include_dirs.append('/usr/openwin/include') added_lib_dirs.append('/usr/openwin/lib') - elif os.path.exists('/usr/X11R6/include'): - include_dirs.append('/usr/X11R6/include') - added_lib_dirs.append('/usr/X11R6/lib64') - added_lib_dirs.append('/usr/X11R6/lib') - elif os.path.exists('/usr/X11R5/include'): - include_dirs.append('/usr/X11R5/include') - added_lib_dirs.append('/usr/X11R5/lib') - else: + #elif os.path.exists('/usr/X11R6/include'): + # include_dirs.append('/usr/X11R6/include') + # added_lib_dirs.append('/usr/X11R6/lib64') + # added_lib_dirs.append('/usr/X11R6/lib') + #elif os.path.exists('/usr/X11R5/include'): + # include_dirs.append('/usr/X11R5/include') + # added_lib_dirs.append('/usr/X11R5/lib') + #else: # Assume default location for X11 - include_dirs.append('/usr/X11/include') - added_lib_dirs.append('/usr/X11/lib') + # include_dirs.append('/usr/X11/include') + # added_lib_dirs.append('/usr/X11/lib') # If Cygwin, then verify that X is installed before proceeding if platform == 'cygwin':