xarthisius 14/07/23 09:31:18 Modified: h5py-2.3.1.ebuild ChangeLog Log: Make sure that --mpi is passed to setup.py during each stage (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x5D21B852895192F9)
Revision Changes Path 1.3 dev-python/h5py/h5py-2.3.1.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/h5py/h5py-2.3.1.ebuild?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/h5py/h5py-2.3.1.ebuild?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/h5py/h5py-2.3.1.ebuild?r1=1.2&r2=1.3 Index: h5py-2.3.1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/h5py/h5py-2.3.1.ebuild,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- h5py-2.3.1.ebuild 23 Jul 2014 09:01:56 -0000 1.2 +++ h5py-2.3.1.ebuild 23 Jul 2014 09:31:18 -0000 1.3 @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/h5py/h5py-2.3.1.ebuild,v 1.2 2014/07/23 09:01:56 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/h5py/h5py-2.3.1.ebuild,v 1.3 2014/07/23 09:31:18 xarthisius Exp $ EAPI=5 @@ -26,27 +26,27 @@ mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )" DISTUTILS_NO_PARALLEL_BUILD=1 +pkg_setup() { + if use mpi ; then + export CC=mpicc + fi +} + python_prepare_all() { append-cflags -fno-strict-aliasing distutils-r1_python_prepare_all } python_compile() { - if use mpi;then - export CC=mpicc - distutils-r1_python_compile --mpi=yes - else - distutils-r1_python_compile - fi + distutils-r1_python_compile --mpi=$(usex mpi yes no) } python_test() { - if use mpi ; then - export CC=mpicc - esetup.py test --mpi - else - esetup.py test - fi + esetup.py test --mpi=$(usex mpi yes no) +} + +python_install() { + distutils-r1_python_install --mpi=$(usex mpi yes no) } python_install_all() { 1.29 dev-python/h5py/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/h5py/ChangeLog?rev=1.29&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/h5py/ChangeLog?rev=1.29&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/h5py/ChangeLog?r1=1.28&r2=1.29 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-python/h5py/ChangeLog,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- ChangeLog 23 Jul 2014 09:01:56 -0000 1.28 +++ ChangeLog 23 Jul 2014 09:31:18 -0000 1.29 @@ -1,6 +1,9 @@ # ChangeLog for dev-python/h5py # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/h5py/ChangeLog,v 1.28 2014/07/23 09:01:56 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/h5py/ChangeLog,v 1.29 2014/07/23 09:31:18 xarthisius Exp $ + + 23 Jul 2014; Kacper Kowalik <[email protected]> h5py-2.3.1.ebuild: + Make sure that --mpi is passed to setup.py during each stage 23 Jul 2014; Kacper Kowalik <[email protected]> h5py-2.3.1.ebuild: Use mpi wrapper when compiling with parallel hdf5. Tests with USE=mpi are
