Re: Installed wajig 0.2.11-1 (i386 source)
On Wed, Jan 09, 2002 at 09:07:06PM -0600, Adam Heath wrote:
> On Wed, 9 Jan 2002, Malcolm Parsons wrote:
>
> > python modules should be supplied as source, and byte compiled in the
> > postinst.
>
> No, they should be byte compiled during package creation.
There is no point byte compiling during package creation, as every time
the python2.{1,2} packages are upgraded, every .py file is byte
compiled again anyway:
python2.2.postinst:
for i in $DIRLIST ; do
/usr/bin/python2.2 -O /usr/lib/python2.2/compileall.py -q $i
/usr/bin/python2.2 /usr/lib/python2.2/compileall.py -q $i
done
resulting in:
malcolm@arthur:/usr/lib/python2.2/site-packages/Guppi$ ls -l
total 328
-rw-r--r-- 1 root root 71237 Jan 4 21:50 __init__.py
-rw-r--r-- 1 root root 120672 Jan 9 21:00 __init__.pyc
-rw-r--r-- 1 root root 115395 Jan 9 21:00 __init__.pyo
Unless you think it took 5 days to build this package?
It's also a waste of archive space, bandwidth, etc.
As I upgrade over a modem, making packages the useful part of a package 4 times smaller is IMHO a very good idea.
Reply to: