[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2019-03-16 Thread Bun Hin
Bun Hin added the comment: I have similar problem with python 3.7.0 or 3.7.2, how to fix my installation to get it work? please help Thanks -- nosy: +bunhin ___ Python tracker

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-09 Thread Georg Brandl
Georg Brandl added the comment: Picked to release clone as 411d500e56a1. -- priority: release blocker - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15822 ___

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-09 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15822 ___ ___ Python-bugs-list mailing

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 411d500e56a1 by Ned Deily in branch 'default': Issue #15822: Fix installation of lib2to3 grammar pickles to ensure http://hg.python.org/cpython/rev/411d500e56a1 -- ___ Python tracker

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think PYTHON_FOR_BUILD includes -E to make sure that if PYTHONPATH (or PYTHONHOME) is set that it then won't affect the build. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15822

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2def9ef683da by Ned Deily in branch '2.7': Issue #15822: Fix installation of lib2to3 grammar pickles to ensure http://hg.python.org/cpython/rev/2def9ef683da New changeset adc5e6aca251 by Ned Deily in branch '3.2': Issue #15822: Fix installation of

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-08 Thread Ned Deily
Ned Deily added the comment: I like Martin's suggested approach. It is explicit and much cleaner than the changes we introduced for Issue15645 as well as the original. The applied changes revert the previous changes and instead implement an explicit build of the two pickles directly in the

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-08 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: pending - open Removed file: http://bugs.python.org/file27084/issue15822_33.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15822 ___

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think the patch for issue 15645 was incorrect. Instead of generating the pickles in the source tree and copying them, it should have arranged lib2to3 to generate them in the target directory instead (just as all the compileall invocations also generate

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: See als Issue15838. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15822 ___ ___ Python-bugs-list mailing

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: The other alternative to fix this is to revert the patch in issue 15645 and then remove the -E flag from PYTHON_FOR_BUILD. PYTHON_FOR_BUILD was introduced by a, possibly incomplete, attempt to introduce support for cross compiling. In particular, the

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-01 Thread Ned Deily
Ned Deily added the comment: The problem here is in the libinstall Makefile target and that hidden dependency within lib2to3 that, as Tomi notes, causes lib2to3 to try to recreate the pickles anytime it runs if it thinks they are out of date. The fixes for Issue15645 cause the recipes for

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: - done + done; \ Not needed. + touch $(DESTDIR)$(LIBDEST)/lib2to3/*Grammar*.pickle || true - prefix can be used to ignore failure of command: + -touch $(DESTDIR)$(LIBDEST)/lib2to3/*Grammar*.pickle However maybe

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-01 Thread Ned Deily
Ned Deily added the comment: I did it that way to ensure that the touch is executed after the copies. And the touch needs to be optional because the creation of the pickles can optionally fail. -- ___ Python tracker rep...@bugs.python.org

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-01 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: And the touch needs to be optional because the creation of the pickles can optionally fail. If creation of pickles failed, then touch will create 1 file literally named *Grammar*.pickle. ... done; \ for i in

[issue15822] installed python may fail incorrectly trying to rebuild lib2to3 grammar pickles

2012-09-01 Thread Ned Deily
Ned Deily added the comment: Right you are, thanks! I had that in an earlier version. Are you able to verify the fix? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15822 ___