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.

Author eric.araujo
Recipients Arfrever, alexis, eric.araujo, tarek
Date 2011-11-28.13:55:58
SpamBayes Score 4.2485077e-08
Marked as misclassified No
Message-id <1322488559.96.0.127039487383.issue13400@psf.upfronthosting.co.za>
In-reply-to
Content
> I suggest to not use "pyc" and "pyo" in options, because ".pyc" and ".pyo" filename extensions
> are specific to a subset of Python implementations. Jython uses "$py.class" filename extension
> (module$py.class for module.py).
But these are extension modules, not Python modules byte-compiled for caching, are they?

> You could use --byte-compile, --no-byte-compile and --optimize-bytecode (or --optimize-byte-code)
> for both build and build_py commands.
I like the first two names, but still think that --optimize-bytecode might make people imply that the option is dependent on (or implying) --byte-compile.  Maybe it’s just me; I did not read the source for these options closely and was under this misconception for months.  OTOH, even with one maybe possibly ambiguous option name, I can still make the help text clearer (i.e. “byte-compile Python modules” and “byte-compile Python modules with optimizations”).

(We’re spending a lot of thoughts for a very marginally useful feature (.pyo files).)

> Do settings from setup.cfg affect byte-compilation?
Yes.  Like any command options, --(no-)compile and --optimize can be given in config files or on the command-line.

BTW, why don’t you want byte-compiled files on your system?
History
Date User Action Args
2011-11-28 13:56:00eric.araujosetrecipients: + eric.araujo, tarek, Arfrever, alexis
2011-11-28 13:55:59eric.araujosetmessageid: <1322488559.96.0.127039487383.issue13400@psf.upfronthosting.co.za>
2011-11-28 13:55:59eric.araujolinkissue13400 messages
2011-11-28 13:55:58eric.araujocreate