summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/install_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/command/install_data.py')
-rw-r--r--numpy/distutils/command/install_data.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/numpy/distutils/command/install_data.py b/numpy/distutils/command/install_data.py
index b72737f85..0a2e68ae1 100644
--- a/numpy/distutils/command/install_data.py
+++ b/numpy/distutils/command/install_data.py
@@ -1,3 +1,6 @@
+import sys
+have_setuptools = ('setuptools' in sys.modules)
+
from distutils.command.install_data import install_data as old_install_data
#data installer with improved intelligence over distutils
@@ -5,6 +8,14 @@ from distutils.command.install_data import install_data as old_install_data
#of willy-nilly
class install_data (old_install_data):
+ def run(self):
+ old_install_data.run(self)
+
+ if have_setuptools:
+ # Run install_clib again, since setuptools does not run sub-commands
+ # of install automatically
+ self.run_command('install_clib')
+
def finalize_options (self):
self.set_undefined_options('install',
('install_lib', 'install_dir'),