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

Function CCompiler_show_customization

numpy/distutils/ccompiler.py:450–475  ·  view source on GitHub ↗

Print the compiler customizations to stdout. Parameters ---------- None Returns ------- None Notes ----- Printing is only done if the distutils log threshold is < 2.

(self)

Source from the content-addressed store, hash-verified

448 return '\n'.join(lines)
449
450def CCompiler_show_customization(self):
451 """
452 Print the compiler customizations to stdout.
453
454 Parameters
455 ----------
456 None
457
458 Returns
459 -------
460 None
461
462 Notes
463 -----
464 Printing is only done if the distutils log threshold is < 2.
465
466 """
467 try:
468 self.get_version()
469 except Exception:
470 pass
471 if log._global_log.threshold<2:
472 print('*'*80)
473 print(self.__class__)
474 print(_compiler_to_string(self))
475 print('*'*80)
476
477replace_method(CCompiler, 'show_customization', CCompiler_show_customization)
478

Callers

nothing calls this directly

Calls 3

printFunction · 0.85
_compiler_to_stringFunction · 0.85
get_versionMethod · 0.45

Tested by

no test coverage detected