summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-08-20 23:24:24 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-08-20 23:24:24 +0000
commit06ea402528b0cdd228a16ce77d2aafff44ede61e (patch)
tree4f5d0e0fcab9312e5f03fedf9619e35a75b773a5 /numpy/distutils/command/build_ext.py
parent4fd1035c1080134b4be9e26ea7dd7f5eaf3c1c4b (diff)
downloadnumpy-06ea402528b0cdd228a16ce77d2aafff44ede61e.tar.gz
Run scons command in build_ext instead of build.
setuptools develop run build_ext inplace, not build, so develop command in setuptools would not call the scons command. Now, the develop mode should work with numscons.
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r--numpy/distutils/command/build_ext.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index 68d0aff7f..ea5913a67 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -217,6 +217,11 @@ class build_ext (old_build_ext):
# Build extensions
self.build_extensions()
+ # Make sure that scons based extensions are complete.
+ if self.inplace:
+ self.reinitialize_command('scons', inplace=1)
+ self.run_command('scons')
+
def swig_sources(self, sources):
# Do nothing. Swig sources have beed handled in build_src command.
return sources