You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
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.
Activity
blueyed commentedon Jun 6, 2019
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".
ned-deily commentedon Jun 7, 2019
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.
encukou commentedon Oct 30, 2026
To suppress output, use
make install COMPILEALL_OPTS='-q'.This is a duplicate of #160835, which is newer but IMO has a more compelling use case. And... I already commented there, so I'll close this one.