[2.7] bpo-36235: Fix distutils test_customize_compiler() on macOS by vstinner · Pull Request #12751 · python/cpython

Expand Up @@ -73,6 +73,9 @@ def set_executables(self, **kw): comp = compiler() old_vars = dict(sysconfig._config_vars) try: # On macOS, disable _osx_support.customize_compiler() sysconfig._config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True'
for key, value in sysconfig_vars.items(): sysconfig._config_vars[key] = value sysconfig.customize_compiler(comp) Expand Down