[csw-maintainers] debian's python policy

Joerg Schilling Joerg.Schilling at fokus.fraunhofer.de
Wed May 20 19:26:11 CEST 2009


Philip Brown <phil at bolthole.com> wrote:

> I just discovered that debian has an explicit, separate
> "python policy".
> Thought I'd reference it here.
>
> http://www.debian.org/doc/packaging-manuals/python-policy/
>
> As usual.. while we are not bound to follow everything debian does... we
> would be fools not to learn from their amassed experience on the subject.
>
> And coincidently, their policy on .pyc files can be found at
> http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html#s-bytecompilation
>
> "If a package provides any binary-independent modules (foo.py files), the
>  corresponding bytecompiled modules (foo.pyc files) and optimized modules
>  (foo.pyo files) must not ship in the package. Instead, they should be
>  generated in the package's postinst, and removed in the package's prerm. "

What is the reason for such a decision?

Jörg

-- 
 EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js at cs.tu-berlin.de                (uni)  
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



More information about the maintainers mailing list