public
Last active

Patch for pymol's `setup.py` script to be more accomodating to home-brew and non-macports users

  • Download Gist
pymol_setup_fix.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
--- 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),

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.