summaryrefslogtreecommitdiff
path: root/distutils/command/install_headers.py
diff options
context:
space:
mode:
Diffstat (limited to 'distutils/command/install_headers.py')
-rw-r--r--distutils/command/install_headers.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/distutils/command/install_headers.py b/distutils/command/install_headers.py
new file mode 100644
index 000000000..b8dc21920
--- /dev/null
+++ b/distutils/command/install_headers.py
@@ -0,0 +1,20 @@
+"""
+ I don't know much about this one, so I'm not going to mess with
+ it much. (eric)
+"""
+from distutils.command.install import *
+from distutils.command.install_headers import install_headers as old_install_headers
+
+class install_headers (old_install_headers):
+ def run (self):
+ headers = self.distribution.headers
+ if not headers:
+ return
+ # hack to force headers into Numeric instead of SciPy
+ import os
+ d,f = os.path.split(self.install_dir)
+ self.install_dir = os.path.join(d,'Numeric')
+ self.mkpath(self.install_dir)
+ for header in headers:
+ (out, _) = self.copy_file(header, self.install_dir)
+ self.outfiles.append(out)