Skip to content

Instantly share code, notes, and snippets.

@jpata
Created September 20, 2016 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpata/1fd7a3c65ed9f17c99c2743fe1b49701 to your computer and use it in GitHub Desktop.
Save jpata/1fd7a3c65ed9f17c99c2743fe1b49701 to your computer and use it in GitHub Desktop.
root_numpy setup.py patch
diff --git a/setup.py b/setup.py
index 6569037..48d1603 100755
--- a/setup.py
+++ b/setup.py
@@ -80,8 +80,9 @@ librootnumpy = Extension(
extra_compile_args=root_cflags + [
'-Wno-unused-function',
'-Wno-write-strings',
+ '-mmacosx-version-min=10.7'
],
- extra_link_args=root_ldflags + ['-lTreePlayer'])
+ extra_link_args=root_ldflags + ['-lTreePlayer', '-mmacosx-version-min=10.7'])
ext_modules = [librootnumpy]
packages = [
@@ -106,8 +107,9 @@ if has_tmva and not os.getenv('NOTMVA', None):
extra_compile_args=root_cflags + [
'-Wno-unused-function',
'-Wno-write-strings',
+ '-mmacosx-version-min=10.7'
],
- extra_link_args=root_ldflags + ['-lTMVA'])
+ extra_link_args=root_ldflags + ['-lTMVA', '-mmacosx-version-min=10.7'])
ext_modules.append(librootnumpy_tmva)
packages.append('root_numpy.tmva')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment