Mercurial > cpython-lru_cache-weakref
diff setup.py @ 19968:e9128ea45cda legacy-trunk
[Patch #462258] On Cygwin, don't build Tkinter unless the X header files
can be found.
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Tue, 18 Sep 2001 20:32:13 +0000 |
| parents | 619a2d6b5ea9 |
| children | 7ea61da878af |
line wrap: on
line diff
--- a/setup.py Tue Sep 18 20:29:48 2001 +0000 +++ b/setup.py Tue Sep 18 20:32:13 2001 +0000 @@ -653,6 +653,13 @@ 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) )
