Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 5, 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-opcode-targets: Python/opcode_targets.h
  • Add PYTHON_FOR_REGEN variable

  • 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

@vstinner vstinner changed the title bpo-23404: make touch becomes make regen-all [2.7] bpo-23404: make touch becomes make regen-all May 5, 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-opcode-targets: Python/opcode_targets.h

* Add PYTHON_FOR_REGEN variable
* 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
@vstinner vstinner merged commit 8a19eb2 into python:2.7 May 5, 2017
@vstinner vstinner deleted the regen_27 branch May 5, 2017 01:14
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