Skip to content

Instantly share code, notes, and snippets.

@nutjob4life
Created June 26, 2014 22:54
Show Gist options
  • Save nutjob4life/4c9e23d9ba599d8731d9 to your computer and use it in GitHub Desktop.
Save nutjob4life/4c9e23d9ba599d8731d9 to your computer and use it in GitHub Desktop.
Another JCC setup.py patch
--- setup.py.orig 2014-06-26 17:16:26.000000000 -0500
+++ setup.py 2014-06-26 17:51:32.000000000 -0500
@@ -44,6 +44,8 @@
elif platform in ("darwin",):
try:
from helpers.darwin import JAVAHOME, JAVAFRAMEWORKS
+ # Don't use Java 8 on my system:
+ JAVAHOME = '/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home'
except ImportError:
JAVAHOME = None
JAVAFRAMEWORKS = None
@@ -333,9 +335,7 @@
if platform in ('darwin', 'ipod'):
kwds["extra_link_args"] = \
- lflags + ['-install_name', '@rpath/libjcc.dylib',
- '-current_version', jcc_ver,
- '-compatibility_version', jcc_ver]
+ lflags + []
elif platform == 'linux2':
kwds["extra_link_args"] = \
lflags + ['-lpython%s.%s' %(sys.version_info[0:2])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment