Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493062 - dev-python/pyopencl-2013.2 - add python 3.x support
Summary: dev-python/pyopencl-2013.2 - add python 3.x support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-01 20:35 UTC by Freddie Witherden
Modified: 2014-04-03 08:56 UTC (History)
0 users

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


Attachments
diff -u of initial and revbumped ebuilds (pyopencl.patch,2.15 KB, patch)
2014-04-03 08:08 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Freddie Witherden 2013-12-01 20:35:43 UTC
Now that dev-python/pytools has gained support for Python 3.x it should be possible to add 3.x support to pyopencl.
Comment 1 Pavel Kozlov 2014-02-17 19:49:24 UTC
Checked this. simply removed (commented) line
"RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"

And build completed. qlist pyopencl shows list of files in /usr/lib64/python3.3 directory and "import pyopencl" in python shell also works well.

I vote for this issue.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2014-04-03 08:08:10 UTC
Created attachment 374142 [details, diff]
diff -u of initial and revbumped ebuilds

This revbump works but I get a minor qa issue on its completion

~/cvsPortage/gentoo-x86/dev-python/pyopencl $ USE=examples ebuild pyopencl-2013.2-r1.ebuild clean install

yields

 * python2_7: running distutils-r1_run_phase python_install_all
>>> Completed installing pyopencl-2013.2-r1 into /mnt/gen2/TmpDir/portage/dev-python/pyopencl-2013.2-r1/image/

 * QA Notice: command not found:
 * 
 *      /mnt/gen2/TmpDir/portage/dev-python/pyopencl-2013.2-r1/temp/environment: line 3354: : command not found
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version

from the temp/environment;

python_replicate_script ()
{
    debug-print-function ${FUNCNAME} "${@}";
    function _python_replicate_script ()
    {
        if _python_want_python_exec2; then
            local PYTHON_SCRIPTDIR;
            python_export PYTHON_SCRIPTDIR;
            ( exeinto "${PYTHON_SCRIPTDIR#${EPREFIX}}";
            doexe "${files[@]}" );
            _python_rewrite_shebang "${EPYTHON}" "${files[@]/*\//${D%/}/${PYTHON_SCRIPTDIR}/}";
        else
            local f;
            for f in "${files[@]}";
            do
                cp -p "${f}" "${f}-${EPYTHON}" || die;
            done;
            _python_rewrite_shebang "${EPYTHON}" "${files[@]/%/-${EPYTHON}}";
        fi
    };
    local files=("${@}");
    python_foreach_impl _python_replicate_script;
    local f;
    for f in "$@";
    do
        _python_ln_rel "${ED%/}$(_python_get_wrapper_path)" "${f}" || die;
    done
}
line 3354 is /t done

Someone resolve this qa mesg?
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2014-04-03 08:56:45 UTC
*pyopencl-2013.2-r1 (03 Apr 2014)

  03 Apr 2014; Ian Delaney <idella4@gentoo.org> +pyopencl-2013.2-r1.ebuild:
  revbump; convert -> distutils-r1, add py3 support