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: Sat, 04 Jun 2022 07:00:26
Message-Id: 1654326016.02aa5743b9acd9fec45b6a02a302795ae28ff753.mgorny@gentoo
1 commit: 02aa5743b9acd9fec45b6a02a302795ae28ff753
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 4 05:31:08 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 4 07:00:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02aa5743
7
8 dev-python/aesara: Bump to 2.7.0
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.0.ebuild | 91 +++++++++++++++++++++++++++++++++++
14 2 files changed, 92 insertions(+)
15
16 diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest
17 index 172856538f01..3d9a01a9b398 100644
18 --- a/dev-python/aesara/Manifest
19 +++ b/dev-python/aesara/Manifest
20 @@ -1 +1,2 @@
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
24 diff --git a/dev-python/aesara/aesara-2.7.0.ebuild b/dev-python/aesara/aesara-2.7.0.ebuild
25 new file mode 100644
26 index 000000000000..34529ae9b5f9
27 --- /dev/null
28 +++ b/dev-python/aesara/aesara-2.7.0.ebuild
29 @@ -0,0 +1,91 @@
30 +# Copyright 2021-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit distutils-r1 multiprocessing optfeature
39 +
40 +MY_P=aesara-rel-${PV}
41 +DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays"
42 +HOMEPAGE="
43 + https://github.com/aesara-devs/aesara/
44 + https://pypi.org/project/aesara/
45 +"
46 +SRC_URI="
47 + https://github.com/aesara-devs/aesara/archive/rel-${PV}.tar.gz
48 + -> ${MY_P}.gh.tar.gz
49 +"
50 +S=${WORKDIR}/${MY_P}
51 +
52 +LICENSE="BSD"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
55 +
56 +RDEPEND="
57 + dev-python/cons[${PYTHON_USEDEP}]
58 + dev-python/etuples[${PYTHON_USEDEP}]
59 + dev-python/logical-unification[${PYTHON_USEDEP}]
60 + dev-python/minikanren[${PYTHON_USEDEP}]
61 + dev-python/filelock[${PYTHON_USEDEP}]
62 + >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
63 + dev-python/six[${PYTHON_USEDEP}]
64 + dev-python/scipy[${PYTHON_USEDEP}]
65 + dev-python/typing-extensions[${PYTHON_USEDEP}]
66 +"
67 +BDEPEND="
68 + test? (
69 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +PATCHES=(
74 + "${FILESDIR}"/aesara-2.6.5-compiledir-tid.patch
75 +)
76 +
77 +distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme'
78 +distutils_enable_tests pytest
79 +
80 +python_test() {
81 + local EPYTEST_DESELECT=(
82 + # speed tests are unreliable
83 + tests/scan/test_basic.py::test_speed
84 + tests/scan/test_basic.py::test_speed_rnn
85 + tests/scan/test_basic.py::test_speed_batchrnn
86 + tests/link/test_vm.py::test_speed
87 + tests/link/test_vm.py::test_speed_lazy
88 + tests/tensor/test_gc.py::test_merge_opt_runtime
89 +
90 + # rounding problem?
91 + # https://github.com/aesara-devs/aesara/issues/477
92 + tests/tensor/test_math_scipy.py::TestGammaUBroadcast::test_good
93 + tests/tensor/test_math_scipy.py::TestGammaUInplaceBroadcast::test_good
94 + )
95 + local EPYTEST_IGNORE=(
96 + # we do not package numba
97 + tests/link/test_numba.py
98 + tests/link/test_numba_performance.py
99 + )
100 +
101 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
102 + local -x AESARA_FLAGS="cxx=${CXX}"
103 + AESARA_FLAGS+=",config.gcc__cxxflags=\"${CXXFLAGS}\""
104 + AESARA_FLAGS+=',compiledir_format="compiledir_%(thread_id)s"'
105 +
106 + epytest -p xdist.plugin -n "$(makeopts_jobs)"
107 + # clean up the compiledir, as it can grow pretty large
108 + rm -r "${HOME}"/.aesara || die
109 +}
110 +
111 +python_compile() {
112 + esetup.py build_py
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 +}