[Tutor] Moved Python installation. Need advice rebuilding all *.pyc
Python
python at venix.com
Mon Jul 3 23:06:07 CEST 2006
On Mon, 2006-07-03 at 22:34 +0200, Andreas 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 ?
There is a program called compileall.py. I'm on linux and do not know
the default Windows location.
cd E:\Python24\site-packages
python ???\python2.4\???\compileall.py .
Linux: /usr/lib/python2.4/compileall.py
It will provide some help info if asked.
python ???\python2.4\???\compileall.py --help
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Lloyd Kvam
Venix Corp
More information about the Tutor
mailing list