>I recently created a debian file for my project (see http://subterfugue.org),
>and discovered just now why including .pyc and .pyo files directly doesn't
>work optimally.
Where is the problem? Python bytecode should be platform
independent! So it is safe to include .pyc and .pyo files. There is no
need to compile them at configure time.

>Is there any sort of policy for this?  Or lacking that, is there a particular
>package I ought to use as a good model?
I recommend the Distutils (included in Python 2.0 as a module).
Then you can use "python setup.py install --root=`pwd`/debian/tmp"
in your rules file and the .pyc and .pyo files are generated 
automatically.
Look at my own program at http://linkchecker.sourceforge.net/

Bastian


Reply via email to