(self)
| 235 | """ |
| 236 | |
| 237 | def run(self): |
| 238 | from numpy import get_include |
| 239 | |
| 240 | numpy_incl = get_include() |
| 241 | |
| 242 | for ext in self.extensions: |
| 243 | if ( |
| 244 | hasattr(ext, "include_dirs") |
| 245 | and numpy_incl not in ext.include_dirs |
| 246 | ): |
| 247 | ext.include_dirs.append(numpy_incl) |
| 248 | |
| 249 | build_ext.run(self) |
| 250 | |
| 251 | |
| 252 | # https://github.com/joerick/python-abi3-package-sample/blob/main/setup.py |
no test coverage detected