Ok... though the way to do it is a little different.

import compileall
compileall.compile_dir('<path>', quiet=1)

This would be enough; but then setup freevo needs to be called with
python -OO as well.

Aubin


On Fri, Aug 01, 2003 at 11:21:48AM +0800, Wan Tat Chee wrote:
> On Thu, 31 Jul 2003, Aubin Paul wrote:
> 
> > 
> > /usr/bin/python2.3 -OO /usr/lib/python2.3/compileall.py </path/to/freevo>
> > 
> 
> > This will byte-compile everything and will avoid the first run/access
> > slowdowns. 
> > 
> > Debian does this with packages, it could be done with RPMs too.
> > 
> 
> That's what I do in the RPM package installation script (instead of
> including all the *.pyc in the RPM package). I run setup_freevo to compile
> to bytecode (currently *.pyc). If you modify setup_freevo to generate
> *.pyo instead, I just need to change the script to cleanup *.pyo on
> package removal.
> 
> T.C.
> ----
> Wan Tat Chee (Lecturer)
> School of Computer Science, Univ. of Science Malaysia,
> 11800 USM, Penang, Malaysia.      Rm.625 Ofc Ph: +604 653-3888 x 3617
> NRG Lab Admin: +604 659-4757           Rm.601-E Ofc Ph: +604 653-4396
> Internet: [EMAIL PROTECTED]            Web: http://nrg.cs.usm.my/~tcwan
> GPG Key : http://nrg.cs.usm.my/~tcwan/tcw_gpg-20030322.asc
> F'print : DCF2 B9B2 FA4D 1208 AD59  14CA 9A8F F54D B2C4 63C7
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to