[Python-checkins] bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)

Victor Stinner webhook-mailer at python.org
Wed Apr 10 19:38:51 EDT 2019


https://github.com/python/cpython/commit/a9bd8925c7fa50dd3cfab125b824ec192133ef49
commit: a9bd8925c7fa50dd3cfab125b824ec192133ef49
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2019-04-11T01:38:48+02:00
summary:

bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12764)

Set CUSTOMIZED_OSX_COMPILER to True to disable
_osx_support.customize_compiler().

files:
M Lib/distutils/tests/test_sysconfig.py

diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py
index 245a6c86b111..236755d09527 100644
--- a/Lib/distutils/tests/test_sysconfig.py
+++ b/Lib/distutils/tests/test_sysconfig.py
@@ -92,6 +92,9 @@ def set_executables(self, **kw):
             'CCSHARED': '--sc-ccshared',
             'LDSHARED': 'sc_ldshared',
             'SHLIB_SUFFIX': 'sc_shutil_suffix',
+
+            # On macOS, disable _osx_support.customize_compiler()
+            'CUSTOMIZED_OSX_COMPILER': 'True',
         }
 
         comp = compiler()



More information about the Python-checkins mailing list