diff options
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: |