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.

classification
Title: make install: make compileall optional
Type: enhancement Stage:
Components: Installation Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: blueyed, ned.deily
Priority: normal Keywords:

Created on 2019-06-06 13:03 by blueyed, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg344812 - (view) Author: daniel hahler (blueyed) * Date: 2019-06-06 13:03
I'd like to make running compileall optionally during installation, since it takes quite a while by itself (with lots of output), and gets a bit into the way when installing often (e.g. with git-bisect).

AFAIK it should not be required, because the files would be compiled on demand as usual.

I could imagine having an explicit target for this, or a make variable to control this, i.e. "make install COMPILEALL=0".
msg344976 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2019-06-07 17:38
In many installations, the user running Python would not have write access to the lib directory tree where the compiled byte files need to be created so we would not want to change the current default behavior.  On the other hand, I could see some times when testing where it would speed things up to skip compiling.

The issue of tons of output is really a more important issue; it would be useful to be able to suppress all those lines of compile output as they rarely provide any useful information, perhaps even suppressing by default.
History
Date User Action Args
2022-04-11 14:59:16adminsetgithub: 81356
2019-06-07 17:38:50ned.deilysetnosy: + ned.deily

messages: + msg344976
versions: + Python 3.9, - Python 3.8
2019-06-06 13:03:12blueyedcreate