1 |
commit: 702254b61a5199df999617336b3a767891a65108 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 20 06:55:51 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 20 12:56:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=702254b6 |
7 |
|
8 |
dev-python/aesara: Bump to 2.2.3 |
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.2.3.ebuild | 70 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 71 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest |
17 |
index 52d060705d3..c5971acfbb6 100644 |
18 |
--- a/dev-python/aesara/Manifest |
19 |
+++ b/dev-python/aesara/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST aesara-rel-2.2.1.tar.gz 8166022 BLAKE2B af3c17029dacb3d365bf49eb01d4d03b5a4f770f66d3e5eba2c4576ef156056bc1aca3571442c1cb7352c358978b47faa7af70ca0da2a2168d8c9bfd47b17138 SHA512 f7bab8ca80e8d13ef7698c1efa56ff37c561786330bf756c7a00c54ae1f131810d68bfd6e328b0705d45788759bd984d42306d2c545d2de6b9a3592b5c021ad8 |
22 |
DIST aesara-rel-2.2.2.tar.gz 8174668 BLAKE2B c95347e8b74f6600c3570177f86b7ebd7511899ed0ceb24a2d79a03a44ee498a8062b92fb79867f59b609f66315704ee92e28e12a5ab600d54d0d35ef799b66b SHA512 d5f62e42c36100b2fd25eba492590eb306b1394aa01bf2e90d43e84ac67701e5b756be6bc08d0e6b82fb1f37689dbbba1d7ef67c8525555a700a634d742056bb |
23 |
+DIST aesara-rel-2.2.3.tar.gz 8179701 BLAKE2B 53ef58d6f0ab33e7efe3d0eaa2b55153a2ab29c958b48f52f814fecf7f5fa65424465470cde0ebb8d2ef1ced6968fd01217d9f7bd61acc8843cde1a9c0a94cbe SHA512 21414230c0be2c31e08fd371ee69c3bb7098b2134a5aec006abeca00a333e025fcbfd10ebdcbf54d243e1bc8c45f301a2c3443531ba5eaf0fe3a1ac5645ae4f5 |
24 |
|
25 |
diff --git a/dev-python/aesara/aesara-2.2.3.ebuild b/dev-python/aesara/aesara-2.2.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..86721797fe0 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/aesara/aesara-2.2.3.ebuild |
30 |
@@ -0,0 +1,70 @@ |
31 |
+# Copyright 2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+inherit distutils-r1 multiprocessing optfeature |
38 |
+ |
39 |
+MY_P=aesara-rel-${PV} |
40 |
+DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays" |
41 |
+HOMEPAGE="https://github.com/aesara-devs/aesara" |
42 |
+SRC_URI="https://github.com/aesara-devs/aesara/archive/rel-${PV}.tar.gz -> ${MY_P}.tar.gz" |
43 |
+S="${WORKDIR}/${MY_P}" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-python/filelock[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}] |
52 |
+ dev-python/six[${PYTHON_USEDEP}] |
53 |
+ dev-python/scipy[${PYTHON_USEDEP}]" |
54 |
+BDEPEND=" |
55 |
+ test? ( |
56 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
57 |
+ )" |
58 |
+ |
59 |
+distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme' |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ sed -i -e "s/tests.\*/tests\*/" setup.py || die |
64 |
+ |
65 |
+ distutils-r1_python_prepare_all |
66 |
+} |
67 |
+ |
68 |
+python_test() { |
69 |
+ local exclude=( |
70 |
+ # speed tests are unreliable |
71 |
+ tests/scan/test_basic.py::test_speed |
72 |
+ tests/scan/test_basic.py::test_speed_rnn |
73 |
+ tests/scan/test_basic.py::test_speed_batchrnn |
74 |
+ tests/link/test_vm.py::test_speed |
75 |
+ tests/link/test_vm.py::test_speed_lazy |
76 |
+ tests/tensor/test_gc.py::test_merge_opt_runtime |
77 |
+ |
78 |
+ # rounding problem? |
79 |
+ # https://github.com/aesara-devs/aesara/issues/477 |
80 |
+ tests/tensor/test_math_scipy.py::TestGammaUBroadcast::test_good |
81 |
+ tests/tensor/test_math_scipy.py::TestGammaUInplaceBroadcast::test_good |
82 |
+ ) |
83 |
+ |
84 |
+ distutils_install_for_testing |
85 |
+ # we do not package numba |
86 |
+ epytest ${exclude[@]/#/--deselect } \ |
87 |
+ --ignore tests/link/test_numba.py \ |
88 |
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
89 |
+} |
90 |
+ |
91 |
+# https://dev.gentoo.org/~mgorny/python-guide/concept.html#packaging-pkgutil-style-namespaces-in-gentoo |
92 |
+python_install() { |
93 |
+ rm "${BUILD_DIR}"/lib/bin/__init__.py || die |
94 |
+ distutils-r1_python_install |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ optfeature "GPU code generation/execution on NVIDIA gpus" dev-util/nvidia-cuda-toolkit dev-util/nvidia-cuda-sdk |
99 |
+ optfeature "GPU/CPU code generation on CUDA and OpenCL devices" dev-libs/libgpuarray dev-python/pycuda |
100 |
+} |