Message154739
> Does "compileall" generate both .pyc and .pyo by default?
python3 -m compileall generates pyc, python3 -O -m compileall pyo. Functions in py_compile and compileall gained an optimize argument in 3.2.
> does pysetup handle that for you?
You’ll have to be more specific. Bytecode files can be created when building a bdist or on install from source. Packaging commands do not depend on the calling Python’s -O option, they have their own options to let users specify if they want pyc files, pyo, neither or both.
> MvL is correct that zipimport should ignore .pyo files when __debug__ is set and vice-versa, but the
> precompilation tools should also take care of generating both versions by default.
Really? The behaviors of compileall and packaging seems better to me. |
|
Date |
User |
Action |
Args |
2012-03-02 05:54:09 | eric.araujo | set | recipients:
+ eric.araujo, loewis, brett.cannon, ncoghlan, acidbase |
2012-03-02 05:54:09 | eric.araujo | set | messageid: <1330667649.16.0.531590956782.issue1346572@psf.upfronthosting.co.za> |
2012-03-02 05:54:06 | eric.araujo | link | issue1346572 messages |
2012-03-02 05:54:06 | eric.araujo | create | |
|