python package: pyo files

Toshio Kuratomi toshio at tiki-lounge.com
Wed Aug 9 18:16:46 UTC 2006


On Wed, 2006-08-09 at 13:03 -0400, Jeremy Katz wrote:
> On Wed, 2006-08-09 at 18:46 +0200, Michał Bentkowski wrote:
> > 2006/8/9, Laurent Rineau <laurent.rineau__fedora_extras at normalesup.org>:
> > > Actually, those guidelines are quite ambiguous: can a package ship .pyo files
> > > or not?
> > It is really ambigous... IMHO .pyo shouldn't be added to package and
> > this is done by doing %ghost macro.
> 
> They need to be present so that things can end up with the correct
> SELinux context -- otherwise, if you run a python app with -O2 as a
> user, you end up getting various avc denials

Unless I'm misremembering the issue, you get AVC denials in the logs due
to python's just-in-time byte compilation trying to write out the .pyo
file. The program should still run fine.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060809/cd02b57d/attachment.sig>


More information about the fedora-extras-list mailing list