summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/develop.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2007-12-12 20:12:10 +0000
committerRobert Kern <robert.kern@gmail.com>2007-12-12 20:12:10 +0000
commitec1b78909b4526c3b90ad42182a2d692c4ef8bb1 (patch)
tree1ec72e3601e4f6a110e1c31a441e44b0b7a11b7e /numpy/distutils/command/develop.py
parent170d7858835334a336acf4002232fee85b35245f (diff)
downloadnumpy-ec1b78909b4526c3b90ad42182a2d692c4ef8bb1.tar.gz
Make the 'develop' command from setuptools run build_src --inplace in addition to build_ext --inplace. This allows SWIG wrappers to be correctly generated.
Diffstat (limited to 'numpy/distutils/command/develop.py')
-rw-r--r--numpy/distutils/command/develop.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/numpy/distutils/command/develop.py b/numpy/distutils/command/develop.py
new file mode 100644
index 000000000..dddf03be6
--- /dev/null
+++ b/numpy/distutils/command/develop.py
@@ -0,0 +1,12 @@
+""" Override the develop command from setuptools so we can ensure that build_src
+--inplace gets executed.
+"""
+
+from setuptools.command.develop import develop as old_develop
+
+class develop(old_develop):
+ __doc__ = old_develop.__doc__
+ def install_for_development(self):
+ # Build sources in-place, too.
+ self.reinitialize_command('build_src', inplace=1)
+ old_develop.install_for_development(self)