Files
MSYS2-packages/python3/3.3-tkinter.patch
2013-11-05 11:00:07 +04:00

28 lines
1.1 KiB
Diff

--- Python-3.3.2-orig/setup.py 2013-08-01 23:45:32.806640600 +0400
+++ Python-3.3.2/setup.py 2013-08-01 23:54:03.430664000 +0400
@@ -1696,12 +1696,6 @@
include_dirs.append('/usr/X11/include')
added_lib_dirs.append('/usr/X11/lib')
- # If Cygwin, then verify that X is installed before proceeding
- if host_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'):
@@ -1719,9 +1713,8 @@
if host_platform in ['aix3', 'aix4']:
libs.append('ld')
- # Finally, link with the X11 libraries (not appropriate on cygwin)
- if host_platform != "cygwin":
- libs.append('X11')
+ # Finally, link with the X11 libraries
+ libs.append('X11')
ext = Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
define_macros=[('WITH_APPINIT', 1)] + defs,