[issue26007] Request for Support for Embedding the Standard Library in an Executable

Marc-Andre Lemburg report at bugs.python.org
Mon Jan 4 12:07:47 EST 2016


Marc-Andre Lemburg added the comment:

So the use case is that you want to explicitly prevent the file system from being used for imports ?

You might want to look at how eGenix PyRun works, since this does embed the Python stdlib into the executable (including the encodings package). While it does allow imports from the file system, it only looks there for things it cannot find embedded in the binary.

PS: I'd suggest to make the issue title more specific to what you are actually after, which seems to be a way to install importers from C at a very early stage during initialization.

----------
nosy: +lemburg

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26007>
_______________________________________


More information about the Python-bugs-list mailing list