Skip to content

Commit

Permalink
⚫ Fade to black.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 7, 2022
1 parent bf901de commit 43b424b
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions distutils/sysconfig.py
Expand Up @@ -125,7 +125,8 @@ def get_python_inc(plat_specific=0, prefix=None):
except KeyError:
raise DistutilsPlatformError(
"I don't know where Python installs its C header files "
"on platform '%s'" % os.name)
"on platform '%s'" % os.name
)
return getter(resolved_prefix, prefix, plat_specific)


Expand All @@ -143,10 +144,9 @@ def _get_python_inc_posix(prefix, spec_prefix, plat_specific):
else:
incdir = os.path.join(get_config_var('srcdir'), 'Include')
return os.path.normpath(incdir)
return (
_get_python_inc_from_config(plat_specific, spec_prefix) or
_get_python_inc_posix_prefix(prefix)
)
return _get_python_inc_from_config(
plat_specific, spec_prefix
) or _get_python_inc_posix_prefix(prefix)


def _get_python_inc_from_config(plat_specific, spec_prefix):
Expand All @@ -173,8 +173,11 @@ def _get_python_inc_nt(prefix, spec_prefix, plat_specific):
if python_build:
# Include both the include and PC dir to ensure we can find
# pyconfig.h
return (os.path.join(prefix, "include") + os.path.pathsep +
os.path.join(prefix, "PC"))
return (
os.path.join(prefix, "include")
+ os.path.pathsep
+ os.path.join(prefix, "PC")
)
return os.path.join(prefix, "include")


Expand Down

0 comments on commit 43b424b

Please sign in to comment.