MCPcopy Create free account
hub / github.com/numpy/numpy / add_include_dirs

Method add_include_dirs

numpy/distutils/misc_util.py:1369–1383  ·  view source on GitHub ↗

Add paths to configuration include directories. Add the given sequence of paths to the beginning of the include_dirs list. This list will be visible to all extension modules of the current package.

(self,*paths)

Source from the content-addressed store, hash-verified

1367
1368
1369 def add_include_dirs(self,*paths):
1370 """Add paths to configuration include directories.
1371
1372 Add the given sequence of paths to the beginning of the include_dirs
1373 list. This list will be visible to all extension modules of the
1374 current package.
1375 """
1376 include_dirs = self.paths(paths)
1377 dist = self.get_distribution()
1378 if dist is not None:
1379 if dist.include_dirs is None:
1380 dist.include_dirs = []
1381 dist.include_dirs.extend(include_dirs)
1382 else:
1383 self.include_dirs.extend(include_dirs)
1384
1385 def add_headers(self,*files):
1386 """Add installable headers to configuration.

Callers 2

configurationFunction · 0.95
generate_numpyconfig_hFunction · 0.80

Calls 2

pathsMethod · 0.95
get_distributionMethod · 0.95

Tested by

no test coverage detected