Commit cef0183b authored by Vinay Sajip's avatar Vinay Sajip

Closes #15366: Corrected computation of include location for source builds....

Closes #15366: Corrected computation of include location for source builds. Thanks to Richard Oudkerk for the bug report and patch.
parent 14ab73a6
......@@ -101,9 +101,10 @@ def get_python_inc(plat_specific=0, prefix=None):
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')
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment