[pypy-commit] cffi bencord0/also-look-for-ffih-under-usrlocalinclude-1426863787737: Only add '/usr/local/include' to include_dirs on FreeBSD

bencord0 noreply at buildbot.pypy.org
Sun Mar 22 18:15:35 CET 2015


Author: Ben Cordero <bitbucket at condi.me>
Branch: bencord0/also-look-for-ffih-under-usrlocalinclude-1426863787737
Changeset: r1676:7b9b67e7086d
Date: 2015-03-22 07:03 +0000
http://bitbucket.org/cffi/cffi/changeset/7b9b67e7086d/

Log:	Only add '/usr/local/include' to include_dirs on FreeBSD

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -6,8 +6,7 @@
 sources = ['c/_cffi_backend.c']
 libraries = ['ffi']
 include_dirs = ['/usr/include/ffi',
-                '/usr/include/libffi',
-                '/usr/local/include']    # may be changed by pkg-config
+                '/usr/include/libffi']    # may be changed by pkg-config
 define_macros = []
 library_dirs = []
 extra_compile_args = []
@@ -110,6 +109,9 @@
     use_pkg_config()
     ask_supports_thread()
 
+if 'freebsd' in sys.platform:
+    include_dirs.append('/usr/local/include')
+
 
 if __name__ == '__main__':
     from setuptools import setup, Extension


More information about the pypy-commit mailing list