Backport 53776: Ignore directory time stamps

when considering whether to rerun libffi configure.
This commit is contained in:
Martin v. Löwis 2007-02-14 12:53:41 +00:00
parent 1e335b2968
commit d1a29c5dee
1 changed files with 2 additions and 1 deletions

View File

@ -1316,7 +1316,8 @@ class PyBuildExt(build_ext):
from distutils.dep_util import newer_group
config_sources = [os.path.join(ffi_srcdir, fname)
for fname in os.listdir(ffi_srcdir)]
for fname in os.listdir(ffi_srcdir)
if os.path.isfile(os.path.join(ffi_srcdir, fname))]
if self.force or newer_group(config_sources,
ffi_configfile):
from distutils.dir_util import mkpath