[Python-checkins] r80321 - in python/branches/py3k: setup.py

matthias.klose python-checkins at python.org
Wed Apr 21 23:47:45 CEST 2010


Author: matthias.klose
Date: Wed Apr 21 23:47:45 2010
New Revision: 80321

Log:
Merged revisions 80320 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80320 | matthias.klose | 2010-04-21 23:45:30 +0200 (Mi, 21 Apr 2010) | 2 lines
  
  setup.py: search ffi.h in include dirs, if LIBFFI_INCLUDEDIR is empty.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/setup.py

Modified: python/branches/py3k/setup.py
==============================================================================
--- python/branches/py3k/setup.py	(original)
+++ python/branches/py3k/setup.py	Wed Apr 21 23:47:45 2010
@@ -1583,7 +1583,7 @@
             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'


More information about the Python-checkins mailing list