[Python-checkins] r45758 - python/trunk/setup.py

thomas.heller python-checkins at python.org
Thu Apr 27 17:50:45 CEST 2006


Author: thomas.heller
Date: Thu Apr 27 17:50:42 2006
New Revision: 45758

Modified:
   python/trunk/setup.py
Log:
Rerun the libffi configuration if any of the files used for that
are newer then fficonfig.py.


Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py	(original)
+++ python/trunk/setup.py	Thu Apr 27 17:50:42 2006
@@ -1267,7 +1267,12 @@
                                          '_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 = []


More information about the Python-checkins mailing list