1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
9 inherit distutils-r1 flag-o-matic
11 DESCRIPTION="Simple Python interface to HDF5 files"
12 HOMEPAGE="http://www.h5py.org/"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc test examples mpi"
22 dev-python/numpy[${PYTHON_USEDEP}]
23 dev-python/six[${PYTHON_USEDEP}]"
25 dev-python/cython[${PYTHON_USEDEP}]
26 dev-python/pkgconfig[${PYTHON_USEDEP}]
27 dev-python/setuptools[${PYTHON_USEDEP}]
29 dev-python/alabaster[${PYTHON_USEDEP}]
30 >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}]
32 mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )"
35 use mpi && export CC=mpicc
38 python_prepare_all() {
39 append-cflags -fno-strict-aliasing
40 distutils-r1_python_prepare_all
44 esetup.py configure $(usex mpi --mpi '')
47 python_compile_all() {
50 sed '/html_theme/s:default:alabaster:g' -i conf.py || die
60 python_install_all() {
61 DOCS=( README.rst ANN.rst )
62 use doc && HTML_DOCS=( docs/_build/html/. )
63 use examples && local EXAMPLES=( examples/. )
65 distutils-r1_python_install_all