setup.py: search ffi.h in include dirs, if LIBFFI_INCLUDEDIR is empty.
This commit is contained in:
parent
1a9e9f282e
commit
ca6d9e9225
2
setup.py
2
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'
|
||||
|
|
Loading…
Reference in New Issue