summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_clib.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-06-07 10:31:33 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-06-07 10:31:33 +0000
commitdfefd500e0975b4bb7211789ee32237f29b60756 (patch)
tree409263062fd6b10fdbca21c27aa50da6d8532479 /numpy/distutils/command/build_clib.py
parentd924b3e48d93fe92ea7a308920a7544c6aa6d9ec (diff)
downloadnumpy-dfefd500e0975b4bb7211789ee32237f29b60756.tar.gz
Make sure to always call build_src before build_clib.
Diffstat (limited to 'numpy/distutils/command/build_clib.py')
-rw-r--r--numpy/distutils/command/build_clib.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py
index 92498132d..9f6be52eb 100644
--- a/numpy/distutils/command/build_clib.py
+++ b/numpy/distutils/command/build_clib.py
@@ -52,9 +52,11 @@ class build_clib(old_build_clib):
# Make sure that library sources are complete.
languages = []
+
+ # Make sure that extension sources are complete.
+ self.run_command('build_src')
+
for (lib_name, build_info) in self.libraries:
- if not all_strings(build_info.get('sources',[])):
- self.run_command('build_src')
l = build_info.get('language',None)
if l and l not in languages: languages.append(l)