Summary: | gnome-extra/gnome-dvb-daemon-0.2.2 uses package build system to byte-compile Python | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Mayo <aklhfex> |
Component: | New packages | Assignee: | Matt Turner <mattst88> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gnome |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ebuild patch |
Thanks for the patch. The python stuff is foreign to me. Maybe you could explain? It's considered a good idea not to let the package compile its own Python: http://www.gentoo.org/proj/en/Python/developersguide.xml#doc_chap2_sect8 to ensure a platform consistent way of generating the byte code. One benefit I like is that if you do a: qlist gnome-extra/gnome-dvb-daemon you only see the .py files and not all the compiled versions too - even though they are still managed by portage. Arfrever said the patch looks good. Thanks a lot! :) Changes actually applied in the tree don't work for me. The: ln -s $(type -P true) py-compile fails because py-compile already exists. Other ebuilds in the tree that do this put this line before: mv py-compile py-compile.orig. Others have ln -sf which seems to work OK for me. Ah! Crap! Thanks for pointing that out, that was totally my fault. Fixed. |
Created attachment 285367 [details] ebuild patch Attached patch disables Python byte-compilation supplied with gnome-dvb-daemon and gets portage to do it.