[qmtest] make install

Zack Weinberg zack at codesourcery.com
Thu Sep 12 21:00:40 UTC 2002


On Thu, Sep 12, 2002 at 01:49:16PM -0700, Ricardo Anguiano wrote:
> "Mike Carifio" <carifio at usys.com> writes:
> 
> > If I do a 'make install' over a previously installed directory, do
> > the python scripts get recompiled? I thought the .py -> .pyc compilation
> > was automatic and happened anytime .py is newer than .pyc? That
> > doesn't seem to be happening when I do a 'make install'. Please
> > advise at your convenience. Thanks.
> 
> Folks, correct me if I am wrong, but as far as I know, the .py -> .pyc
> compilation happens when the .py file is loaded by the Python
> interpreter.  It would make sense for timestamps to be checked by the
> interpreter to avoid unnecessary work.  I don't think 'make install'
> has anything to do with this step.

This is true.  However, we do want to generate all the .pyc and .pyo
files at installation time (using the handy compile_all.py that comes
with the interpreter), because the end user may not have write
privileges on the directory in which qmtest is installed.  I *think*
setup.py handles this automatically but I could be wrong.

zw



More information about the qmtest mailing list