aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-10-05 23:02:38 +0000
committerRob Austein <sra@hactrn.net>2015-10-05 23:02:38 +0000
commit3ce032bf92f786212bd3582be24dc0e9644071e9 (patch)
tree2c56922fca170591a53c193b3d9ffe1b92a18df6 /setup.py
parent1f2e749c54e68a890809c1ef596fab5e82f33b84 (diff)
Fiddle how we specify include directories to avoid conflict with
system openssl on MacOSX with Homebrew Python 2.7.10. I //think// the trigger for this problem was when Homebrew changed OpenSSL from "keg-only" to full installation, thus putting OpenSSL's header files into the default search path. svn path=/branches/tk705/; revision=6091
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 137fd42c..55b3fc61 100644
--- a/setup.py
+++ b/setup.py
@@ -65,10 +65,10 @@ if autoconf.RP_TARGET == "rp":
"rpki.gui.cacheview",
"rpki.gui.api",
"rpki.gui.routeview"],
- ext_modules = [Extension("rpki.POW._POW", ["ext/POW.c"],
- extra_compile_args = autoconf.CFLAGS.split(),
- extra_link_args = (autoconf.LDFLAGS + " " +
- autoconf.LIBS).split())],
+ ext_modules = [Extension("rpki.POW._POW", ["ext/POW.c"],
+ include_dirs = [cflag[2:] for cflag in autoconf.CFLAGS.split() if cflag.startswith("-I")],
+ extra_compile_args = [cflag for cflag in autoconf.CFLAGS.split() if not cflag.startswith("-I")],
+ extra_link_args = autoconf.LDFLAGS.split() + autoconf.LIBS.split())],
package_data = {"rpki.gui.app" :
["migrations/*.py",
"static/*/*",