[issue13400] packaging: build command should accept --compile, --no-compile and --optimize options

Éric Araujo report at bugs.python.org
Fri Nov 25 18:12:04 CET 2011


Éric Araujo <merwok at netwok.org> added the comment:

Juste a note: currently, when a command sets one option from the value given to another command, they have the same name, with two kinds of exceptions:
- build --build-lib becomes build_lib --build-dir (etc.)
- install --install-lib becomes install_lib --install-dir (etc.)

So, introducing --(no-)byte-compile and --optimize-bytecode= would change that scheme, but it is not a big deal.

On the third hand, maybe this is an opportunity to change the option names on the build_py and install* commands too.  For example, for a long time I thought that --optimize implied --compile, but actually they’re distinct options.

BTW, would these new options simplify some scripts you have, or do you just request them for consistency?

----------

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


More information about the Python-bugs-list mailing list