Skip to content

Instantly share code, notes, and snippets.

@derekbrokeit
Last active October 13, 2015 22:48
Show Gist options
  • Save derekbrokeit/4267806 to your computer and use it in GitHub Desktop.
Save derekbrokeit/4267806 to your computer and use it in GitHub Desktop.
Patch for pymol's `setup.py` script to be more accomodating to home-brew and non-macports users
--- setup.py 2012-12-12 22:55:39.000000000 +0900
+++ setup_fix.py 2012-12-12 23:04:19.000000000 +0900
@@ -153,10 +153,14 @@
outputheader.close()
outputfile.close()
- EXT = "/opt/local"
+ if os.path.isdir("opt/local"):
+ EXT = "/opt/local"
+ else:
+ EXT = "/usr/local"
inc_dirs=["ov/src",
"layer0","layer1","layer2",
"layer3","layer4","layer5",
+ "/usr/X11/include",
EXT+"/include",
EXT+"/include/GL",
EXT+"/include/freetype2",
@@ -167,7 +171,7 @@
]
libs=[]
pyogl_libs = []
- lib_dirs=[]
+ lib_dirs=["/usr/X11/lib",]
def_macros=[("_PYMOL_MODULE",None),
("_PYMOL_LIBPNG",None),
("_PYMOL_FREETYPE",None),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment