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