summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-04-21 21:45:30 (GMT)
committerMatthias Klose <doko@ubuntu.com>2010-04-21 21:45:30 (GMT)
commitca6d9e9225ecc53fc62eff2c3058a2eb1dbfa4e8 (patch)
treea36808fe59c1bc0ab8dab303bc53cb9393edd009 /setup.py
parent1a9e9f282e92d9cef7fbc992b74da6fe8d1c52cd (diff)
downloadcpython-ca6d9e9225ecc53fc62eff2c3058a2eb1dbfa4e8.zip
cpython-ca6d9e9225ecc53fc62eff2c3058a2eb1dbfa4e8.tar.gz
cpython-ca6d9e9225ecc53fc62eff2c3058a2eb1dbfa4e8.tar.bz2
setup.py: search ffi.h in include dirs, if LIBFFI_INCLUDEDIR is empty.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 0a52b0a..27e5f13 100644
--- a/setup.py
+++ b/setup.py
@@ -1808,7 +1808,7 @@ class PyBuildExt(build_ext):
inc_dirs.append('/usr/include/ffi')
ffi_inc = [sysconfig.get_config_var("LIBFFI_INCLUDEDIR")]
- if not ffi_inc:
+ if not ffi_inc or ffi_inc[0] == '':
ffi_inc = find_file('ffi.h', [], inc_dirs)
if ffi_inc is not None:
ffi_h = ffi_inc[0] + '/ffi.h'