[Numpy-svn] r6172 - branches/numpy-mingw-w64/numpy/distutils

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Dec 19 05:25:36 EST 2008


Author: cdavid
Date: 2008-12-19 04:25:18 -0600 (Fri, 19 Dec 2008)
New Revision: 6172

Modified:
   branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
Log:
do not regenerate the import library if already there.

Modified: branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 10:21:54 UTC (rev 6171)
+++ branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 10:25:18 UTC (rev 6172)
@@ -280,6 +280,9 @@
 
     out_name = "libpython%d%d.a" % tuple(sys.version_info[:2])
     out_file = os.path.join(sys.prefix, 'libs', out_name)
+    if os.path.isfile(out_file):
+        log.debug('Skip building import library: "%s" exists' % (out_file))
+        return
 
     def_name = "python%d%d.def" % tuple(sys.version_info[:2])
     def_file = os.path.join(sys.prefix,'libs',def_name)




More information about the Numpy-svn mailing list