Author Jake Merdich
Recipients Jake Merdich
Date 2017-04-18.23:57:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There seem to have been a few issues in the past with creating the lib2to3 pickle files with the right permissions due to umask behavior (#15890). While I'm unaware of the status installer-level fixes have given, it seems prudent that the installed python should always function, given there is an obvious and trivial fallback (regenerating the grammar tables at runtime).

The current codebase will throw a PermissionDenied exception if the pickle file is unreadable, rather than fall back to generating the grammar tables. 

To reproduce:
 Install python2.6+, 3.0+
 chmod o-r $PYTHON_INSTALL/lib/pythonX.Y/lib2to3/*.pickle
 pythonX.Y -c "import lib2to3.pygram"

Notably, this sort of borked installation is quite hard to detect.... unless a user without root tries to run setuptools (*whistles*).
Date User Action Args
2017-04-18 23:58:00Jake Merdichsetrecipients: + Jake Merdich
2017-04-18 23:57:59Jake Merdichsetmessageid: <>
2017-04-18 23:57:59Jake Merdichlinkissue30099 messages
2017-04-18 23:57:59Jake Merdichcreate