MCPcopy Index your code
hub / github.com/python/cpython / customize_compiler

Function customize_compiler

Lib/_osx_support.py:480–497  ·  view source on GitHub ↗

Customize compiler path and configuration variables. This customization is performed when the first extension module build is requested in distutils.sysconfig.customize_compiler.

(_config_vars)

Source from the content-addressed store, hash-verified

478
479
480def customize_compiler(_config_vars):
481 """Customize compiler path and configuration variables.
482
483 This customization is performed when the first
484 extension module build is requested
485 in distutils.sysconfig.customize_compiler.
486 """
487
488 # Find a compiler to use for extension module builds
489 _find_appropriate_compiler(_config_vars)
490
491 # Remove ppc arch flags if not supported here
492 _remove_unsupported_archs(_config_vars)
493
494 # Allow user to override all archs with ARCHFLAGS env var
495 _override_all_archs(_config_vars)
496
497 return _config_vars
498
499
500def get_platform_osx(_config_vars, osname, release, machine):

Callers 1

compile_c_extensionFunction · 0.85

Calls 3

_override_all_archsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…