Skip to content

Commit ff0d0d5

Browse files
author
Andrey Grozin
committed
dev-python/h5py: add python3_8
Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andrey Grozin <[email protected]>
1 parent 7ec0a85 commit ff0d0d5

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

dev-python/h5py/h5py-2.10.0-r1.ebuild

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Copyright 1999-2020 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=7
5+
6+
PYTHON_COMPAT=( python3_{6,7,8} )
7+
8+
inherit distutils-r1 flag-o-matic
9+
10+
DESCRIPTION="Simple Python interface to HDF5 files"
11+
HOMEPAGE="https://www.h5py.org"
12+
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13+
14+
# disable mpi until mpi4py gets python3_8
15+
#IUSE="examples mpi"
16+
IUSE="examples"
17+
18+
LICENSE="BSD"
19+
SLOT="0"
20+
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
21+
22+
#RDEPEND="sci-libs/hdf5:=[mpi=,hl(+)]
23+
RDEPEND="sci-libs/hdf5:=[hl(+)]
24+
dev-python/numpy[${PYTHON_USEDEP}]
25+
dev-python/six[${PYTHON_USEDEP}]"
26+
27+
BDEPEND="dev-python/pkgconfig"
28+
# mpi? ( virtual/mpi )
29+
30+
DEPEND="dev-python/cython[${PYTHON_USEDEP}]
31+
doc? ( dev-python/alabaster[${PYTHON_USEDEP}] )
32+
test? ( dev-python/QtPy[testlib,${PYTHON_USEDEP}]
33+
dev-python/cached-property[${PYTHON_USEDEP}] )"
34+
# mpi? ( dev-python/mpi4py[${PYTHON_USEDEP}] )
35+
36+
PATCHES="${FILESDIR}/${P}-tests.patch"
37+
38+
DOCS=( README.rst AUTHORS ANN.rst )
39+
40+
distutils_enable_tests setup.py
41+
distutils_enable_sphinx docs --no-autodoc
42+
43+
#pkg_setup() {
44+
# use mpi && export CC=mpicc
45+
#}
46+
47+
python_prepare_all() {
48+
append-cflags -fno-strict-aliasing
49+
distutils-r1_python_prepare_all
50+
}
51+
52+
python_configure() {
53+
# esetup.py configure $(usex mpi --mpi '')
54+
esetup.py configure
55+
}
56+
57+
python_test() {
58+
esetup.py test || die "Tests fail with ${EPYTHON}"
59+
# tests generate .pytest_cache which should not be installed
60+
rm -r "${BUILD_DIR}/lib/.pytest_cache" || die
61+
}
62+
63+
python_install_all() {
64+
use examples && dodoc -r examples
65+
66+
distutils-r1_python_install_all
67+
}

0 commit comments

Comments
 (0)