Rerun the libffi configuration if any of the files used for that

are newer then fficonfig.py.
This commit is contained in:
Thomas Heller 2006-04-27 15:50:42 +00:00
parent 2574f5cd8b
commit 5e218b4454
1 changed files with 6 additions and 1 deletions

View File

@ -1267,7 +1267,12 @@ class PyBuildExt(build_ext):
'_ctypes', 'libffi'))
ffi_configfile = os.path.join(ffi_builddir, 'fficonfig.py')
if self.force or not os.path.exists(ffi_configfile):
from distutils.dep_util import newer_group
config_sources = [os.path.join(ffi_srcdir, fname)
for fname in os.listdir(ffi_srcdir)]
if self.force or newer_group(config_sources,
ffi_configfile):
from distutils.dir_util import mkpath
mkpath(ffi_builddir)
config_args = []