Message291853
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:00 | Jake Merdich | set | recipients:
+ Jake Merdich |
2017-04-18 23:57:59 | Jake Merdich | set | messageid: <1492559879.72.0.671474641555.issue30099@psf.upfronthosting.co.za> |
2017-04-18 23:57:59 | Jake Merdich | link | issue30099 messages |
2017-04-18 23:57:59 | Jake Merdich | create | |
|