Commit b109a1d3 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-30273: Update sysconfig (#1464)

The AST_H_DIR variable was removed from Makefile.pre.in by the commit
a5c62a8e (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.
parent 6dd4d734
...@@ -255,7 +255,6 @@ You can use :mod:`sysconfig` as a script with Python's *-m* option: ...@@ -255,7 +255,6 @@ You can use :mod:`sysconfig` as a script with Python's *-m* option:
AIX_GENUINE_CPLUSPLUS = "0" AIX_GENUINE_CPLUSPLUS = "0"
AR = "ar" AR = "ar"
ARFLAGS = "rc" ARFLAGS = "rc"
ASDLGEN = "./Parser/asdl_c.py"
... ...
This call will print in the standard output the information returned by This call will print in the standard output the information returned by
......
...@@ -97,7 +97,7 @@ def get_python_inc(plat_specific=0, prefix=None): ...@@ -97,7 +97,7 @@ def get_python_inc(plat_specific=0, prefix=None):
if plat_specific: if plat_specific:
return base return base
if _sys_home: if _sys_home:
incdir = os.path.join(_sys_home, get_config_var('AST_H_DIR')) incdir = os.path.join(_sys_home, 'Include')
else: else:
incdir = os.path.join(get_config_var('srcdir'), 'Include') incdir = os.path.join(get_config_var('srcdir'), 'Include')
return os.path.normpath(incdir) return os.path.normpath(incdir)
......
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