[New-bugs-announce] [issue12083] Compile-time option to avoid writing files, including generated bytecode

Josh Triplett report at bugs.python.org
Mon May 16 01:49:41 CEST 2011


New submission from Josh Triplett <josh at joshtriplett.org>:

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.

----------
components: Build
messages: 136056
nosy: joshtriplett
priority: normal
severity: normal
status: open
title: Compile-time option to avoid writing files, including generated bytecode
type: compile error
versions: Python 2.7

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


More information about the New-bugs-announce mailing list