Skip to content

Commit 22de4ce

Browse files
authored
bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751)
Set CUSTOMIZED_OSX_COMPILER to True to disable _osx_support.customize_compiler().
1 parent 9c14061 commit 22de4ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/distutils/tests/test_sysconfig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def set_executables(self, **kw):
7373
comp = compiler()
7474
old_vars = dict(sysconfig._config_vars)
7575
try:
76+
# On macOS, disable _osx_support.customize_compiler()
77+
sysconfig._config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True'
78+
7679
for key, value in sysconfig_vars.items():
7780
sysconfig._config_vars[key] = value
7881
sysconfig.customize_compiler(comp)

0 commit comments

Comments
 (0)