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 brett.cannon
Recipients brett.cannon, lemburg, paul.moore, philthompson10
Date 2016-01-04.18:06:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451930766.24.0.762758655496.issue26007@psf.upfronthosting.co.za>
In-reply-to
Content
What Phil is after is a hook at the C level that will allow him to modify the sys module to add something to sys.meta_path to remove PathEntryFinder and put in his own importer (assuming he isn't simply freezing everything).

And yes, you should be able to run the stdlib from a zipfile, but the issue here is all the stuff Python imports as part of startup before the first bit of user Python code is executed, e.g. the encodings module. Since zipimport is added by importlib it gets special treatment  to be usable ASAP. Since Phil wants to completely skew standard import mechanisms this does require a C hook.

What this all means is that Phil really needs https://www.python.org/dev/peps/pep-0432/ to happen so that he can easily get his hook point added into the startup sequence.
History
Date User Action Args
2016-01-04 18:06:06brett.cannonsetrecipients: + brett.cannon, lemburg, paul.moore, philthompson10
2016-01-04 18:06:06brett.cannonsetmessageid: <1451930766.24.0.762758655496.issue26007@psf.upfronthosting.co.za>
2016-01-04 18:06:06brett.cannonlinkissue26007 messages
2016-01-04 18:06:05brett.cannoncreate