]> granicus.if.org Git - python/commit
bpo-23404: make touch becomes make regen-all (#1405) (#1461) (#1465)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 5 May 2017 00:19:59 +0000 (02:19 +0200)
committerGitHub <noreply@github.com>
Fri, 5 May 2017 00:19:59 +0000 (02:19 +0200)
commitab6b962ef241be97536573d7490ce1cfc74fde18
treee1520181e0de7417bc69cfbcf1c0cc18bcffe43c
parent7299088ccf5f72b8494063814b58a180b4250aa7
bpo-23404: make touch becomes make regen-all (#1405) (#1461) (#1465)

* 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 commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b)

* 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.
(cherry picked from commit b109a1d3360fc4bb87b9887264e3634632d392ca)

(cherry picked from commit 9d02f562961efd12d3c8317a10916db7f77330cc)
.hgtouch [deleted file]
Doc/library/sysconfig.rst
Lib/distutils/sysconfig.py
Mac/BuildScript/build-installer.py
Makefile.pre.in
Misc/NEWS
Tools/hg/hgtouch.py [deleted file]
configure
configure.ac