cpython: 998c8a8f2aea (original) (raw)
Mercurial > cpython
changeset 78135:998c8a8f2aea
Closes #15366: Corrected computation of include location for source builds. Thanks to Richard Oudkerk for the bug report and patch. [#15366]
Vinay Sajip <vinay_sajip@yahoo.co.uk> | |
---|---|
date | Mon, 16 Jul 2012 18:24:55 +0100 |
parents | 265e36e277f3 |
children | a970054a93fb |
files | Lib/distutils/sysconfig.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-)[+] [-] Lib/distutils/sysconfig.py 7 |
line wrap: on
line diff
--- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -101,10 +101,11 @@ def get_python_inc(plat_specific=0, pref base = _sys_home or os.path.dirname(os.path.abspath(sys.executable)) if plat_specific: return base
if _sys_home:[](#l1.7)
incdir = os.path.join(_sys_home, get_config_var('AST_H_DIR'))[](#l1.8) else:[](#l1.9)
incdir = os.path.join(_sys_home or get_config_var('srcdir'),[](#l1.10)
'Include')[](#l1.11)
return os.path.normpath(incdir)[](#l1.12)