Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381471 - dev-python/pyside-tools-0.2.9 does not byte-compile the python modules it installs
Summary: dev-python/pyside-tools-0.2.9 does not byte-compile the python modules it ins...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 18:39 UTC by Chris Mayo
Modified: 2011-12-21 18:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch (pyside-tools-0.2.9-pycompile.patch,598 bytes, text/plain)
2011-09-01 18:39 UTC, Chris Mayo
Details
ebuild patch (pyside-tools.patch,691 bytes, patch)
2011-12-21 15:58 UTC, Ian Delaney (RETIRED)
Details | Diff
ebuild patch (pyside-tools.patch,925 bytes, patch)
2011-12-21 16:30 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.