summaryrefslogtreecommitdiff
path: root/dev-python/pplpy/pplpy-0.8.9.ebuild
blob: 8b4cc0104598b4880ff0012501b9ee2b3b47d4ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1

inherit distutils-r1 pypi

DESCRIPTION="Python bindings for the Parma Polyhedra Library (PPL)"
HOMEPAGE="https://pypi.org/project/pplpy/
	https://github.com/sagemath/pplpy"

# The file headers under ppl/ contain the "or later" bit
LICENSE="GPL-3+"

# API/ABI changes in point releases
SLOT="0/${PV}"
KEYWORDS="amd64"
IUSE="doc"

DEPEND="dev-libs/ppl
	dev-python/cysignals[${PYTHON_USEDEP}]
	dev-python/gmpy[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]
	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"

python_compile() {
	# Parallel build breaks the test suite somehow. This should be
	# reported upstream but first someone will need to figure out
	# how to reproduce it outside of Gentoo.
	distutils-r1_python_compile -j 1
}

python_compile_all() {
	use doc && emake -C docs html
}

python_install_all(){
	use doc && local HTML_DOCS=( docs/build/html/. )
	distutils-r1_python_install_all
}

python_test(){
	"${EPYTHON}" setup.py test || die
}