Skip to content

Commit 9ce8a10

Browse files
committed
Convert comment to docstring; update wording.
1 parent 853d0f5 commit 9ce8a10

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

distutils/sysconfig.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,20 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
267267

268268

269269
def _customize_macos():
270+
"""
271+
Perform first-time customization of compiler-related
272+
config vars on macOS. Use after a compiler is known
273+
to be needed. This customization exists primarily to support Pythons
274+
from binary installers. The kind and paths to build tools on
275+
the user system may vary significantly from the system
276+
that Python itself was built on. Also the user OS
277+
version and build tools may not support the same set
278+
of CPU architectures for universal builds.
279+
"""
280+
270281
if sys.platform != "darwin":
271282
return
272283

273-
# Perform first-time customization of compiler-related
274-
# config vars on OS X now that we know we need a compiler.
275-
# This is primarily to support Pythons from binary
276-
# installers. The kind and paths to build tools on
277-
# the user system may vary significantly from the system
278-
# that Python itself was built on. Also the user OS
279-
# version and build tools may not support the same set
280-
# of CPU architectures for universal builds.
281284
global _config_vars
282285
# Use get_config_var() to ensure _config_vars is initialized.
283286
if not get_config_var('CUSTOMIZED_OSX_COMPILER'):

0 commit comments

Comments
 (0)