]> granicus.if.org Git - python/commitdiff
bpo-30273: Update sysconfig (#1464)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 4 May 2017 21:29:09 +0000 (23:29 +0200)
committerGitHub <noreply@github.com>
Thu, 4 May 2017 21:29:09 +0000 (23:29 +0200)
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.

Doc/library/sysconfig.rst
Lib/distutils/sysconfig.py

index 08b74a9affd24fbcd5a933773d4b71c657203cb9..f066a765d00ec72dc676972398b5e5b809fa9821 100644 (file)
@@ -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
index 8bf1a7016bdf420dd3a0fecd56e9d195477637cb..90004acea88761e22034772c837b0f9993878698 100644 (file)
@@ -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)