Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b74d11b

Browse files
committed
Add our own check_header, since distutils one is broken.
1 parent c860323 commit b74d11b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

numpy/distutils/command/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ def _link (self, body,
144144
(body, headers, include_dirs,
145145
libraries, library_dirs, lang))
146146

147+
def check_header(self, header, include_dirs=None, library_dirs=None, lang='c'):
148+
self._check_compiler()
149+
return self.try_compile(
150+
"/* we need a dummy line to make distutils happy */",
151+
[header], include_dirs)
152+
147153
def check_decl(self, symbol,
148154
headers=None, include_dirs=None):
149155
self._check_compiler()

0 commit comments

Comments
 (0)