Feature Requests item #602345, was opened at 2002-08-30 06:13 Message generated for change (Comment added) made by montanaro You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=602345&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: None Status: Open Resolution: None Priority: 3 Private: No Submitted By: Matthias Klose (doko) Assigned to: Skip Montanaro (montanaro) Summary: option for not writing .py[co] files Initial Comment: [destilled from http://bugs.debian.org/96111] Currently python tries to write the .py[co] files even in situations, where it will fail, like on read-only mounted file systems. In other situations I don't want python trying to write the compiled files, i.e. having installed the modules as root as part of a distribution, compiled them correctly, there is no need to write them. Or compiling .py files which are configuration files. Is it reasonable to add an option to python (--dont-write-compiled-files) to the interpreter, which doesn't write them? This would not affect existing code at all. ---------------------------------------------------------------------- >Comment By: Skip Montanaro (montanaro) Date: 2007-01-25 10:45 Message: Logged In: YES user_id=44345 Originator: NO Took me awhile (nearly four years!) to find it, but I finally found the c.l.py message I referred to regarding Windows problems. It's attached. Skip File Added: kew-msg ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2007-01-25 10:33 Message: Logged In: YES user_id=849994 Originator: NO Turning in a feature request. ---------------------------------------------------------------------- Comment By: Skip Montanaro (montanaro) Date: 2003-05-22 17:20 Message: Logged In: YES user_id=44345 I have a c.l.py message buried in my python mailbox which raises some Windows-related problems. I have yet to figure that out, but they looked somewhat difficult on first glance. I'll try to dredge that up and attach it to this id. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2003-05-22 17:03 Message: Logged In: YES user_id=33168 I think Skip now owns this because of his PEP. :-) ---------------------------------------------------------------------- Comment By: Brett Cannon (bcannon) Date: 2003-05-21 00:50 Message: Logged In: YES user_id=357491 PEP 304 now handles this situation. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2003-01-12 15:39 Message: Logged In: YES user_id=33168 You are correct about the patch being incomplete. I still have to do all the doc. I hadn't thought about an env't variable or variable in sys. Both are certainly reasonable. I will update the patch. ---------------------------------------------------------------------- Comment By: Martin v. Löwis (loewis) Date: 2003-01-12 13:47 Message: Logged In: YES user_id=21627 The patch looks good, but is surely incomplete: there should be patches to the documentation, in particular to the man page. It might be also desirable to parallel this option with an environment variable, and/or to expose it writable through the sys module. With the environment variable, people could run Python scripts that won't create .pyc files (as #! /usr/bin/env python does not allow for further command line options). With the API, certain applications could declare that they never want to write .pyc files as they expect to run in parallel with itself, and might cause .pyc conflicts. ---------------------------------------------------------------------- Comment By: Guido van Rossum (gvanrossum) Date: 2002-09-03 10:39 Message: Logged In: YES user_id=6380 I think it's a good idea, but please use a single upper case letter for the option. Python doesn't support long options and I'm not about to start doing so. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2002-09-01 18:30 Message: Logged In: YES user_id=33168 Guido, do you think this is a good idea? If so, assign back to me and I'll work up a patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=602345&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com