This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: make regen-all changes files on Linux
Type: Stage: resolved
Components: Build Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2021-09-17 09:22 by vstinner, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28411 merged vstinner, 2021-09-17 09:30
Messages (3)
msg402019 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-17 09:22
"make regen-frozen" changes PCbuild/_freeze_module.vcxproj and PCbuild/_freeze_module.vcxproj.filters changes files end of line on Linux. I'm working on a fix.

When Python is built out of the source free, "make regen-pegen" changes Parser/parser.c and Tools/peg_generator/pegen/grammar_parser.py:

diff --git a/Parser/parser.c b/Parser/parser.c
index 3cea370c5a..caf864d86c 100644
--- a/Parser/parser.c
+++ b/Parser/parser.c
@@ -1,4 +1,4 @@
-// @generated by pegen from ./Grammar/python.gram
+// @generated by pegen from ../Grammar/python.gram
 #include "pegen.h"
 
 #if defined(Py_DEBUG) && defined(Py_BUILD_CORE)
diff --git a/Tools/peg_generator/pegen/grammar_parser.py b/Tools/peg_generator/pegen/grammar_parser.py
index 6e9f7d3d11..6e9885cef7 100644
--- a/Tools/peg_generator/pegen/grammar_parser.py
+++ b/Tools/peg_generator/pegen/grammar_parser.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3.8
-# @generated by pegen from ./Tools/peg_generator/pegen/metagrammar.gram
+# @generated by pegen from ../Tools/peg_generator/pegen/metagrammar.gram
 
 import ast
 import sys
msg402021 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-17 09:27
See also my PR 28410 which fix Python built out of the source tree.
msg402069 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-09-17 18:12
New changeset c5a677da9e7b2b2aa43b0b6dfb3813c0212379c0 by Victor Stinner in branch 'main':
bpo-45231: update_file.py preserves end of line (GH-28411)
https://github.com/python/cpython/commit/c5a677da9e7b2b2aa43b0b6dfb3813c0212379c0
History
Date User Action Args
2022-04-11 14:59:50adminsetgithub: 89394
2021-09-17 20:20:36vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-09-17 18:12:29vstinnersetmessages: + msg402069
2021-09-17 09:30:58vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request26823
2021-09-17 09:27:36vstinnersetmessages: + msg402021
2021-09-17 09:22:43vstinnercreate