Python package packaging question
Toshio
toshio at tiki-lounge.com
Mon Feb 2 20:59:34 UTC 2004
Hi all,
What is the standard for including byte-compiled python scripts in
packages? Say I have
/usr/lib/python2.2/site-packages/foo.py
which can byte-compile to foo.pyc (byte compiled) and foo.pyo (optimized
byte-compiled. At the moment "optimized" vs normal byte-compiled just
removes assert statements.)
I want to include the foo.py script so everyone can see how it works.
Do I also want to include the byte compiled versions to reduce startup
time? Do I want to include the pyc or pyo file?
I figure that if I don't include one, I still have to %ghost it in case
root happens to byte-compile it later, the package will know to own the
generated file.
I notice that the FC1 python2.2 seems to install all three files which
seems a waste of space....
-Toshio
--
Toshio <toshio at tiki-lounge.com>
More information about the fedora-devel-list
mailing list