diff options
| author | David Cournapeau <cournape@gmail.com> | 2009-02-19 09:33:41 +0000 |
|---|---|---|
| committer | David Cournapeau <cournape@gmail.com> | 2009-02-19 09:33:41 +0000 |
| commit | b74d11b985be572de8e4ae27a94039e945afe280 (patch) | |
| tree | bc865e0cb8cf49dc71699bd756d60c99b1c92a8f /numpy/distutils/command | |
| parent | c860323692707c4374437944bf3c1659ad1a3ab9 (diff) | |
| download | numpy-b74d11b985be572de8e4ae27a94039e945afe280.tar.gz | |
Add our own check_header, since distutils one is broken.
Diffstat (limited to 'numpy/distutils/command')
| -rw-r--r-- | numpy/distutils/command/config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 6288a9d66..0290078e6 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -144,6 +144,12 @@ class was %s (body, headers, include_dirs, libraries, library_dirs, lang)) + def check_header(self, header, include_dirs=None, library_dirs=None, lang='c'): + self._check_compiler() + return self.try_compile( + "/* we need a dummy line to make distutils happy */", + [header], include_dirs) + def check_decl(self, symbol, headers=None, include_dirs=None): self._check_compiler() |
