mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
* bpo-23404: make touch becomes make regen-all (#1405) Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-importlib: Python/importlib_external.h and Python/importlib.h - regen-opcode: Include/opcode.h - regen-opcode-targets: Python/opcode_targets.h - regen-typeslots: Objects/typeslots.inc * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make" default target building Python. (cherry picked from commita5c62a8e9f
) * bpo-30273: Update sysconfig (#1464) The AST_H_DIR variable was removed from Makefile.pre.in by the commita5c62a8e9f
(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. (cherry picked from commitb109a1d336
)
This commit is contained in:
parent
a7e48b544b
commit
9d02f56296
9 changed files with 89 additions and 260 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue