diff options
author | Robert Kern <robert.kern@gmail.com> | 2007-12-12 20:12:10 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2007-12-12 20:12:10 +0000 |
commit | ec1b78909b4526c3b90ad42182a2d692c4ef8bb1 (patch) | |
tree | 1ec72e3601e4f6a110e1c31a441e44b0b7a11b7e /numpy/distutils/command/develop.py | |
parent | 170d7858835334a336acf4002232fee85b35245f (diff) | |
download | numpy-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.py | 12 |
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) |