# HG changeset patch # Parent 671894ae19a24ac66312408e9258c3ca8b865574 diff -r 671894ae19a2 Lib/distutils/sysconfig.py --- a/Lib/distutils/sysconfig.py Mon Jul 02 13:29:57 2012 -0700 +++ b/Lib/distutils/sysconfig.py Mon Jul 16 16:12:13 2012 +0100 @@ -101,10 +101,11 @@ base = _sys_home or os.path.dirname(os.path.abspath(sys.executable)) if plat_specific: return base + if _sys_home: + incdir = os.path.join(_sys_home, get_config_var('AST_H_DIR')) else: - incdir = os.path.join(_sys_home or get_config_var('srcdir'), - 'Include') - return os.path.normpath(incdir) + incdir = os.path.join(get_config_var('srcdir'), 'Include') + return os.path.normpath(incdir) python_dir = 'python' + get_python_version() + build_flags return os.path.join(prefix, "include", python_dir) elif os.name == "nt":