[Fedora-packaging] Python byte-compilation

Jeff Pitman symbiont at berlios.de
Sat Oct 1 14:59:53 UTC 2005


On Saturday 01 October 2005 21:17, Alan Milligan wrote:
> Any thoughts?

Generate at buildtime and use %ghost in %files (or if you're a pedantic 
at pushing the packages out faster, then use "touch" to generate dummy 
placeholders).  Then generate in %post.

Actually, Debian Python Policy states to byte compile in post.  Probably 
for the reason you stated.  

How many packages have you adopted this policy?  And, have you noticed a 
significant speed impact during install of the packages?

The reason it hasn't been implemented here, is probably based on two 
reasons:

1. Disk space complaints. (FE likes to %ghost *.pyo)
2. Potential install slowness.  (They don't want a repeat of the kernel 
hardlink stuff.)

-- 
-jeff




More information about the Fedora-packaging mailing list