[Tutor] Moved Python installation. Need advice rebuilding all *.pyc

Adam adam.jtm30 at gmail.com
Tue Jul 4 12:27:38 CEST 2006


On 03/07/06, Andreas <a.m.i.x at web.de> wrote:
>
> On 03.07.2006 20:45 Adam wrote
>
> > Erm trying to remember exactly how to do this in windows but if you do
> the
> > equivalent of an rm -r E:\Python24\site-packages\*.pyc ie remove all the
> > *.pyc files they will be rebuilt as and when you next import those
> modules.
>
> Thanks for the info. However, if this is being done automatically on
> import, why does "python setup.py install" often do some compilation ?


It reduces the loading time for the modules if there is already a *.pyc so
the setup script often does it in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060704/cef20c22/attachment.html 


More information about the Tutor mailing list