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

Bug 484420

Summary: dev-python/wxpython: does magic on top of Python script wrapping
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo wxWidgets Herd <wxwidgets>
Status: CONFIRMED ---    
Severity: QA CC: python, wxwidgets
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484398    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-09 21:38:32 UTC
python_install() {
    cd "${ED}"usr/bin || die
    for file in *-"${EPYTHON}"; do
        local wrapper=${file%-${EPYTHON}}

        mv "${file}" "${file/-/-${SLOT}-}" || die

        # wrappers are common to all impls, so a parallel run may
        # move it for us. ln+rm is more failure-proof.
        ln -fs python-exec "${wrapper}-${SLOT}" || die
        rm -f "${wrapper}"

Yeah, I know it's my fault. Please keep this open, I'll either try to do it in a less hacky way or just make sure to fix the ebuild if we change wrapping method.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-17 20:46:33 UTC
FYI: I've forced python-exec:0 in the ebuild now. We will probably revisit this near python-exec:2 going stable, so please keep the bug open.