Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 4, 2017

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 a5c62a8)

The AST_H_DIR variable was removed from Makefile.pre.in by the commit
a5c62a8 (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 b109a1d)

(cherry picked from commit 9d02f56)

* 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 a5c62a8)

* bpo-30273: Update sysconfig (#1464)

The AST_H_DIR variable was removed from Makefile.pre.in by the commit
a5c62a8 (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 b109a1d)

(cherry picked from commit 9d02f56)
@vstinner vstinner merged commit ab6b962 into python:3.5 May 5, 2017
@vstinner vstinner deleted the regen_35 branch May 5, 2017 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants