summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-05-04 21:29:09 (GMT)
committerGitHub <noreply@github.com>2017-05-04 21:29:09 (GMT)
commitb109a1d3360fc4bb87b9887264e3634632d392ca (patch)
treecd30e9e2e96548eb4c44da87d3c775c76856e2a8
parent6dd4d734ed207ba16b017e38f8909de7ef187e29 (diff)
downloadcpython-b109a1d3360fc4bb87b9887264e3634632d392ca.zip
cpython-b109a1d3360fc4bb87b9887264e3634632d392ca.tar.gz
cpython-b109a1d3360fc4bb87b9887264e3634632d392ca.tar.bz2
bpo-30273: Update sysconfig (#1464)
The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (bpo-23404). AST_H_DIR was hardcoded to "Include", so replace the removed variable by its content. Remove also ASDLGEN variable from sysconfig example since this variable was also removed.
-rw-r--r--Doc/library/sysconfig.rst1
-rw-r--r--Lib/distutils/sysconfig.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/sysconfig.rst b/Doc/library/sysconfig.rst
index 08b74a9..f066a76 100644
--- a/Doc/library/sysconfig.rst
+++ b/Doc/library/sysconfig.rst
@@ -255,7 +255,6 @@ You can use :mod:`sysconfig` as a script with Python's *-m* option:
AIX_GENUINE_CPLUSPLUS = "0"
AR = "ar"
ARFLAGS = "rc"
- ASDLGEN = "./Parser/asdl_c.py"
...
This call will print in the standard output the information returned by
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 8bf1a70..90004ac 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -97,7 +97,7 @@ def get_python_inc(plat_specific=0, prefix=None):
if plat_specific:
return base
if _sys_home:
- incdir = os.path.join(_sys_home, get_config_var('AST_H_DIR'))
+ incdir = os.path.join(_sys_home, 'Include')
else:
incdir = os.path.join(get_config_var('srcdir'), 'Include')
return os.path.normpath(incdir)