Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aesara/
Date: Sun, 05 Jun 2022 09:14:34
Message-Id: 1654420464.b3ba8334bc50e168cf046eb55748db70365d78cf.mgorny@gentoo
1 commit: b3ba8334bc50e168cf046eb55748db70365d78cf
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 5 06:57:22 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 5 09:14:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3ba8334
7
8 dev-python/aesara: Bump to 2.7.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/aesara/Manifest | 1 +
13 dev-python/aesara/aesara-2.7.1.ebuild | 90 +++++++++++++++++++++++++++++++++++
14 2 files changed, 91 insertions(+)
15
16 diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest
17 index 3d9a01a9b398..939c1ea7103a 100644
18 --- a/dev-python/aesara/Manifest
19 +++ b/dev-python/aesara/Manifest
20 @@ -1,2 +1,3 @@
21 DIST aesara-rel-2.6.6.tar.gz 7847814 BLAKE2B e4edd575d49f548fab0ef971dbab88beeb43859ec7b80612145ed490b31d6e7dc6b6818653396938124a22fa2f54f8d151c5039cc2e9c9070c88cce9cb1c5596 SHA512 028a208fc7e5921ce1df34dd23a42cf90d419e06f0192d9a006ebfb8c5f36e35e347214e53f53e688a1144063c7f4853a8cd44eef6fc205225147116839008de
22 DIST aesara-rel-2.7.0.gh.tar.gz 7854953 BLAKE2B 0daee9dcad9c39d1eddd469930cb540369f9463f947d706691fe1552b8e39340743aa8d8a809fe8b7943bba253ef1b93018738ca13be7147114ab6cf77a3ee37 SHA512 b03a182f366624b496bee46b86d43c68b94d840503317af74113bd5b1c6fefc31e4e4d96d6c5dd129212904729127da949cebf05c5a162711d3872e1747c93a8
23 +DIST aesara-rel-2.7.1.gh.tar.gz 7857341 BLAKE2B edc31030810ec4193901d258c8666080219befccca17bc6165968f959bd57661f92de86720561ab54266906e2be1a83e0fef3e81a62c2810f0b78cda1dbc5265 SHA512 85a4b24a5f58cbb95db448d01140ff64f9ea39242b204a49ddbb2ff8827a16d0ba454764ed3ce9d2b6ed58a7494c452cda39582ae89691d44d8f91ec43e1f50d
24
25 diff --git a/dev-python/aesara/aesara-2.7.1.ebuild b/dev-python/aesara/aesara-2.7.1.ebuild
26 new file mode 100644
27 index 000000000000..2baff9130511
28 --- /dev/null
29 +++ b/dev-python/aesara/aesara-2.7.1.ebuild
30 @@ -0,0 +1,90 @@
31 +# Copyright 2021-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +
39 +inherit distutils-r1 multiprocessing optfeature
40 +
41 +MY_P=aesara-rel-${PV}
42 +DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays"
43 +HOMEPAGE="
44 + https://github.com/aesara-devs/aesara/
45 + https://pypi.org/project/aesara/
46 +"
47 +SRC_URI="
48 + https://github.com/aesara-devs/aesara/archive/rel-${PV}.tar.gz
49 + -> ${MY_P}.gh.tar.gz
50 +"
51 +S=${WORKDIR}/${MY_P}
52 +
53 +LICENSE="BSD"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
56 +
57 +RDEPEND="
58 + dev-python/cons[${PYTHON_USEDEP}]
59 + dev-python/etuples[${PYTHON_USEDEP}]
60 + dev-python/logical-unification[${PYTHON_USEDEP}]
61 + dev-python/minikanren[${PYTHON_USEDEP}]
62 + dev-python/filelock[${PYTHON_USEDEP}]
63 + >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
64 + dev-python/six[${PYTHON_USEDEP}]
65 + dev-python/scipy[${PYTHON_USEDEP}]
66 + dev-python/typing-extensions[${PYTHON_USEDEP}]
67 +"
68 +BDEPEND="
69 + test? (
70 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +PATCHES=(
75 + "${FILESDIR}"/aesara-2.6.5-compiledir-tid.patch
76 +)
77 +
78 +distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme'
79 +distutils_enable_tests pytest
80 +
81 +python_test() {
82 + local EPYTEST_DESELECT=(
83 + # speed tests are unreliable
84 + tests/scan/test_basic.py::test_speed
85 + tests/scan/test_basic.py::test_speed_rnn
86 + tests/scan/test_basic.py::test_speed_batchrnn
87 + tests/link/test_vm.py::test_speed
88 + tests/link/test_vm.py::test_speed_lazy
89 + tests/tensor/test_gc.py::test_merge_opt_runtime
90 +
91 + # rounding problem?
92 + # https://github.com/aesara-devs/aesara/issues/477
93 + tests/tensor/test_math_scipy.py::TestGammaUBroadcast::test_good
94 + tests/tensor/test_math_scipy.py::TestGammaUInplaceBroadcast::test_good
95 + )
96 + local EPYTEST_IGNORE=(
97 + # we do not package numba
98 + tests/link/test_numba.py
99 + tests/link/test_numba_performance.py
100 + )
101 +
102 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
103 + local -x AESARA_FLAGS="cxx=${CXX}"
104 + AESARA_FLAGS+=",config.gcc__cxxflags=\"${CXXFLAGS}\""
105 + AESARA_FLAGS+=',compiledir_format="compiledir_%(thread_id)s"'
106 +
107 + epytest -p xdist.plugin -n "$(makeopts_jobs)"
108 + # clean up the compiledir, as it can grow pretty large
109 + rm -r "${HOME}"/.aesara || die
110 +}
111 +
112 +python_compile() {
113 + distutils-r1_python_compile
114 + rm "${BUILD_DIR}/install$(python_get_sitedir)/bin/__init__.py" || die
115 +}
116 +
117 +pkg_postinst() {
118 + optfeature "GPU code generation/execution on NVIDIA gpus" dev-util/nvidia-cuda-toolkit dev-util/nvidia-cuda-sdk
119 + optfeature "GPU/CPU code generation on CUDA and OpenCL devices" dev-libs/libgpuarray dev-python/pycuda
120 +}