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.

classification
Title: Compile-time option to avoid writing files, including generated bytecode
Type: compile error Stage:
Components: Build Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: joshtriplett, loewis
Priority: normal Keywords:

Created on 2011-05-15 23:49 by joshtriplett, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg136056 - (view) Author: Josh Triplett (joshtriplett) Date: 2011-05-15 23:49
PEP 304 provides a runtime option to avoid saving generating bytecode files.  However, for embedded usage, it would help to have a compile-time option to remove all the file-writing code entirely, hardcoding PYTHONBYTECODEBASE="".  I ran into this when porting Python to an embedded platform, which will never support any form of filesystem write operations; currently, I have to provide dummy functions for writing files, which error out when attempting to write to anything other than stdout or stderr.
msg136057 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2011-05-16 00:09
This request is out of scope for 2.7. It is a new feature, and no new features can be added to 2.7.
History
Date User Action Args
2022-04-11 14:57:17adminsetgithub: 56292
2011-05-16 00:09:17loewissetstatus: open -> closed

nosy: + loewis
messages: + msg136057

resolution: wont fix
2011-05-15 23:49:41joshtriplettcreate