Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile-time option to avoid writing files, including generated bytecode #56292

Closed
joshtriplett mannequin opened this issue May 15, 2011 · 2 comments
Closed

Compile-time option to avoid writing files, including generated bytecode #56292

joshtriplett mannequin opened this issue May 15, 2011 · 2 comments
Labels
build The build process and cross-build

Comments

@joshtriplett
Copy link
Mannequin

joshtriplett mannequin commented May 15, 2011

BPO 12083
Nosy @loewis

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2011-05-16.00:09:17.930>
created_at = <Date 2011-05-15.23:49:41.230>
labels = ['build']
title = 'Compile-time option to avoid writing files, including generated bytecode'
updated_at = <Date 2011-05-16.00:09:17.899>
user = 'https://bugs.python.org/joshtriplett'

bugs.python.org fields:

activity = <Date 2011-05-16.00:09:17.899>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = <Date 2011-05-16.00:09:17.930>
closer = 'loewis'
components = ['Build']
creation = <Date 2011-05-15.23:49:41.230>
creator = 'joshtriplett'
dependencies = []
files = []
hgrepos = []
issue_num = 12083
keywords = []
message_count = 2.0
messages = ['136056', '136057']
nosy_count = 2.0
nosy_names = ['loewis', 'joshtriplett']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue12083'
versions = ['Python 2.7']

@joshtriplett
Copy link
Mannequin Author

joshtriplett mannequin commented May 15, 2011

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.

@joshtriplett joshtriplett mannequin added build The build process and cross-build labels May 15, 2011
@loewis
Copy link
Mannequin

loewis mannequin commented May 16, 2011

This request is out of scope for 2.7. It is a new feature, and no new features can be added to 2.7.

@loewis loewis mannequin closed this as completed May 16, 2011
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

0 participants