mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
[Patch #462258] On Cygwin, don't build Tkinter unless the X header files
can be found.
This commit is contained in:
parent
97c56357b1
commit
89fb72dd76
1 changed files with 7 additions and 0 deletions
7
setup.py
7
setup.py
|
|
@ -653,6 +653,13 @@ 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', [], inc_dirs)
|
||||
if x11_inc is None:
|
||||
# X header files missing, so give up
|
||||
return
|
||||
|
||||
# Check for BLT extension
|
||||
if self.compiler.find_library_file(lib_dirs + added_lib_dirs, 'BLT8.0'):
|
||||
defs.append( ('WITH_BLT', 1) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue