Skip to content

Instantly share code, notes, and snippets.

@derekbrokeit
Created April 16, 2013 08:09
Show Gist options
  • Save derekbrokeit/5394269 to your computer and use it in GitHub Desktop.
Save derekbrokeit/5394269 to your computer and use it in GitHub Desktop.
Disable automatically linking to x11 in python installation.
diff --git a/setup.py b/setup.py
index ea8a5f5..5460fb9 100644
--- a/setup.py
+++ b/setup.py
@@ -1897,8 +1897,8 @@ class PyBuildExt(build_ext):
libs.append('ld')
# Finally, link with the X11 libraries (not appropriate on cygwin)
- if host_platform != "cygwin":
- libs.append('X11')
+ # if host_platform != "cygwin":
+ # libs.append('X11')
ext = Extension('_tkinter', ['_tkinter.c', 'tkappinit.c'],
define_macros=[('WITH_APPINIT', 1)] + defs,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment