You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2016/03/20 06:53:56 UTC

[02/14] lucy-clownfish git commit: Better Python include dirs for Python.h.

Better Python include dirs for Python.h.

Getting the include dir from `distutils.sysconfig` seems to be more
reliable than `sysconfig`.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/b71d2dbd
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/b71d2dbd
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/b71d2dbd

Branch: refs/heads/master
Commit: b71d2dbd60bcef59153fce949b9f519b64c297f7
Parents: bf4723f
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Wed Mar 16 00:21:05 2016 +0000
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Sat Mar 19 21:42:28 2016 -0700

----------------------------------------------------------------------
 runtime/python/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/b71d2dbd/runtime/python/setup.py
----------------------------------------------------------------------
diff --git a/runtime/python/setup.py b/runtime/python/setup.py
index 2e89dd2..fa184ef 100644
--- a/runtime/python/setup.py
+++ b/runtime/python/setup.py
@@ -39,7 +39,7 @@ def ext_build_dir(base):
 # CFLAGS.  Add the Python headers include dir to CFLAGS.
 compiler = distutils.ccompiler.new_compiler()
 cflags = sysconfig.get_config_var('CFLAGS')
-cflags = cflags + " -I" + sysconfig.get_path('include')
+cflags = cflags + " -I" + distutils.sysconfig.get_python_inc()
 compiler_type = distutils.ccompiler.get_default_compiler()
 
 # There's no public way to get a string representing the compiler executable