diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-26 20:18:56 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-26 20:18:56 +0000 |
commit | ccd1c3db37672627aa4fe0fdb5437f5dddc0fe86 (patch) | |
tree | f1bb4da472d92a03e6705e79d074aa4fdeb93bf2 /scipy/distutils/command/install_headers.py | |
parent | 8ac222e304fdd59394725d27e82168a95eadaf1c (diff) | |
download | numpy-ccd1c3db37672627aa4fe0fdb5437f5dddc0fe86.tar.gz |
Added weave.
Diffstat (limited to 'scipy/distutils/command/install_headers.py')
-rw-r--r-- | scipy/distutils/command/install_headers.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scipy/distutils/command/install_headers.py b/scipy/distutils/command/install_headers.py index 801c1a9d9..043f024f5 100644 --- a/scipy/distutils/command/install_headers.py +++ b/scipy/distutils/command/install_headers.py @@ -9,9 +9,14 @@ class install_headers (old_install_headers): if not headers: return - prefix = os.path.dirname(self.install_dir) + prefix = os.path.dirname(self.install_dir) for header in headers: if isinstance(header,tuple): + # Kind of a hack, but I don't know where else to change this... + if header[0] == 'scipy.base': + header = ('scipy', header[1]) + if os.path.splitext(header[1])[1] == '.inc': + continue d = os.path.join(*([prefix]+header[0].split('.'))) header = header[1] else: |