summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-19 10:25:18 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-19 10:25:18 +0000
commit4e07a5b8e5065829fe74ed20da1196c7b4d4f590 (patch)
tree39b2f799a0251158e5731905597bfb9260287410 /numpy/distutils/mingw32ccompiler.py
parent33b2968b0eebf6c421553d57d426684db1a7dc7c (diff)
downloadnumpy-4e07a5b8e5065829fe74ed20da1196c7b4d4f590.tar.gz
do not regenerate the import library if already there.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 7663929ba..86a9b137d 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -280,6 +280,9 @@ def _build_import_library_amd64():
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)