Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 381471

Summary: dev-python/pyside-tools-0.2.9 does not byte-compile the python modules it installs
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: New packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild patch
ebuild patch
ebuild patch

Description Chris Mayo 2011-09-01 18:39:05 UTC
Created attachment 285277 [details]
ebuild patch

Fixed for me with the attached patch to the ebuild, which includes an EAPI bump to support the use of python_mod_optimize.
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2011-09-01 23:36:22 UTC
The bug summary makes no sense, could you explain what the issue is please?
Comment 2 Chris Mayo 2011-09-02 16:36:51 UTC
You're right. Title corrected to say compile.

None of the files installed in /usr/lib64/python2.7/site-packages/pysideuic/ are compiled.
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-12-01 19:51:21 UTC
No they don't, the ebuild doesn't implement the byte compiling function.  Should it?
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2011-12-21 15:58:49 UTC
Created attachment 296569 [details, diff]
ebuild patch
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2011-12-21 16:30:37 UTC
Created attachment 296577 [details, diff]
ebuild patch

This take it a little further.
EAPI4, uses distutils making calling of mod_optimize and mod_cleanup not required to byte compile the module
Comment 6 Mike Gilbert gentoo-dev 2011-12-21 18:00:56 UTC
Chris had it right the first time. :)

+  21 Dec 2011; Mike Gilbert <floppym@gentoo.org> pyside-tools-0.2.13.ebuild:
+  Call python_mod_optimize to byte-compile python modules. Patch by Chris Mayo
+  in bug 381471.