From 3ce032bf92f786212bd3582be24dc0e9644071e9 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 5 Oct 2015 23:02:38 +0000 Subject: 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 --- setup.py | 8 ++++---- 1 file 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/*/*", -- cgit v1.2.3