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.

Author loewis
Recipients Arfrever, benjamin.peterson, georg.brandl, loewis, ned.deily, ronaldoussoren, tpievila
Date 2012-09-07.17:46:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 files in LIBDEST).

There are multiple ways to achieve this. The least intrusive (perhaps) is to insert "$(DESTDIR)$(LIBDEST)" into sys.path before importing lib2to3 in the Makefile.

The approach that I suggest is to make lib2to3.pgen2.driver a script which expects a .txt path, and generates a pickle next to it, so the installation would do

$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
Date User Action Args
2012-09-07 17:46:19loewissetrecipients: + loewis, georg.brandl, ronaldoussoren, benjamin.peterson, ned.deily, Arfrever, tpievila
2012-09-07 17:46:18loewissetmessageid: <>
2012-09-07 17:46:18loewislinkissue15822 messages
2012-09-07 17:46:17loewiscreate