-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy path3.2.6-tkinter-x11.patch
More file actions
26 lines (23 loc) · 1014 Bytes
/
3.2.6-tkinter-x11.patch
File metadata and controls
26 lines (23 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- setup.py
+++ setup.py
@@ -1606,12 +1606,6 @@ class PyBuildExt(build_ext):
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':
- x11_inc = find_file('X11/Xlib.h', [], include_dirs)
- if x11_inc is None:
- return
-
# Check for BLT extension
if self.compiler.find_library_file(lib_dirs + added_lib_dirs,
'BLT8.0'):
@@ -1629,9 +1623,7 @@ class PyBuildExt(build_ext):
if platform in ['aix3', 'aix4']:
libs.append('ld')
- # Finally, link with the X11 libraries (not appropriate on cygwin)
- if platform != "cygwin":
- libs.append('X11')
+ libs.append('X11')
ext = Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
define_macros=[('WITH_APPINIT', 1)] + defs,