setup.py: search ffi.h in include dirs, if LIBFFI_INCLUDEDIR is empty.

This commit is contained in:
Matthias Klose 2010-04-21 21:45:30 +00:00
parent 1a9e9f282e
commit ca6d9e9225
1 changed files with 1 additions and 1 deletions

View File

@ -1808,7 +1808,7 @@ class PyBuildExt(build_ext):
inc_dirs.append('/usr/include/ffi') inc_dirs.append('/usr/include/ffi')
ffi_inc = [sysconfig.get_config_var("LIBFFI_INCLUDEDIR")] 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) ffi_inc = find_file('ffi.h', [], inc_dirs)
if ffi_inc is not None: if ffi_inc is not None:
ffi_h = ffi_inc[0] + '/ffi.h' ffi_h = ffi_inc[0] + '/ffi.h'