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

Method add_define_macros

numpy/distutils/misc_util.py:1353–1366  ·  view source on GitHub ↗

Add define macros to configuration Add the given sequence of macro name and value duples to the beginning of the define_macros list This list will be visible to all extension modules of the current package.

(self, macros)

Source from the content-addressed store, hash-verified

1351 ### XXX Implement add_py_modules
1352
1353 def add_define_macros(self, macros):
1354 """Add define macros to configuration
1355
1356 Add the given sequence of macro name and value duples to the beginning
1357 of the define_macros list This list will be visible to all extension
1358 modules of the current package.
1359 """
1360 dist = self.get_distribution()
1361 if dist is not None:
1362 if not hasattr(dist, 'define_macros'):
1363 dist.define_macros = []
1364 dist.define_macros.extend(macros)
1365 else:
1366 self.define_macros.extend(macros)
1367
1368
1369 def add_include_dirs(self,*paths):

Callers 1

configurationFunction · 0.95

Calls 1

get_distributionMethod · 0.95

Tested by

no test coverage detected