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 fourplusone
Recipients Florian Hassanen, Marcus.Smith, Oleg N, dstufft, fourplusone, ncoghlan, paul.moore
Date 2016-07-03.12:28:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467548912.5.0.107062231546.issue24960@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is indeed that lib2to3 fails to load the Grammar.txt file if it is located inside a .zip archive.

I think one way to fix it is using of the "get_data" function of the loader  https://docs.python.org/3/library/importlib.html#importlib.abc.ResourceLoader.get_data

However, this would make caching the Grammar more difficult, as one cannot write back the pickled dict to a zip file

Alternatively one could generate an importable *.pyc file from the grammar during the build process
History
Date User Action Args
2016-07-03 12:28:32fourplusonesetrecipients: + fourplusone, paul.moore, ncoghlan, dstufft, Marcus.Smith, Oleg N, Florian Hassanen
2016-07-03 12:28:32fourplusonesetmessageid: <1467548912.5.0.107062231546.issue24960@psf.upfronthosting.co.za>
2016-07-03 12:28:32fourplusonelinkissue24960 messages
2016-07-03 12:28:32fourplusonecreate