python_compile() { #... if use mpi; then cd Src/MPI # ^ missing '|| die'! building_of_mpipython() { ${PYTHON} compile.py mv -f mpipython mpipython-${EPYTHON} # ^^^^^^^^^^^ } python_foreach_impl building_of_mpipython # ^ this is broken, python_compile() is inside foreach_impl, # so you end up with foreach inside foreach... fi } python_install_all() { use doc && HTML_DOCS=( Doc/Reference/. ) distutils-r1_python_install_all if use mpi; then dobin Src/MPI/mpipython-${EPYTHON} dosym python-exec /usr/bin/mpipython # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ insinto /usr/share/doc/${PF} doins Examples/mpi.py fi } See comments above. Then, you are still reimplementing internals of the eclass you're not supposed to touch. And I'm not sure how or if this thing even works. But preferably do something like this: python_compile() { #... if use mpi; then cd Src/MPI || die "${PYTHON}" compile.py || die mv mpipython "${BUILD_DIR}"/ || die fi } # note: not the _all variant! python_install() { distutils-r1_python_install use mpi && python_doscript "${BUILD_DIR}"/mpipython }
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.
(In reply to Michał Górny from comment #0) > use mpi && python_doscript "${BUILD_DIR}"/mpipython > } That's impossible because python_doscript() doesn't support elf. On the otherhand kicking mpipython-python2.7 gives me a python shell as well as mpipython directly. So it seems the wrapper works with elf binaries.
+*scientificpython-2.9.3 (13 Mar 2014) + + 13 Mar 2014; Michał Górny <mgorny@gentoo.org> + +files/scientificpython-2.9.3-mpi-netcdf.patch, + +scientificpython-2.9.3.ebuild: + Version bump. Use python_doexe() to switch Python wrapping to eclass, bug + #484416.