1 |
commit: 60f46085cb4a65e7f8410cc3f09704e85e51149c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 31 05:54:50 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 31 13:32:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60f46085 |
7 |
|
8 |
dev-python/aesara: Bump to 2.1.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.1.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 cd0223d975b..7b7fc949363 100644 |
18 |
--- a/dev-python/aesara/Manifest |
19 |
+++ b/dev-python/aesara/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST aesara-rel-2.0.12.tar.gz 8154749 BLAKE2B 0e39102e985e9f9ed49f65c76389d76702b5d8fbe8c3e1130c61dce7c43eb70f5c73fd3557ff9aeaa1d186b33bb5803a04a4a5b0ce41076af7e923d05ce3353d SHA512 e68f5ce0c64a678219421a0bfc957d1594dc34c887af6f6373c00888387e5da83dec44b68b9309146ae2fd60c0677039980a87ee87ecc0ad3db2fbc80213cc34 |
22 |
DIST aesara-rel-2.1.2.tar.gz 8167162 BLAKE2B 727bdf6fb9765c8b60da585595ed7203071490c1dfc0895428ae3efe4a1e74a14bbdf2a76128a6840dedeabdfc997fd297dec23ff517247452433cbdc9449b9a SHA512 22ebd1290a0727f2cf1e106770c872d5f1d785c6946b8e4debcc29a34fddceccb11f0ec81850fd93dbff556aa300bf2ec1bd6eef1297d93e194ff832b442c453 |
23 |
+DIST aesara-rel-2.1.3.tar.gz 8170822 BLAKE2B dbbc4a453c5d7f9cd4ab2c925dd9293e835db23100686a8d7ab2c47182b1bc05f883eeb60d6f47f8f34e4187f3ac07b632cde43fe82a99e2145a2f699a2b3582 SHA512 52d1724eb7b3c9bae4bdbf1735db9ef96cdfa94f3e2281b255201d0baba260fe31f78c00719a53ce3c59ea9c66ff218d8acd7bc012b386942f29806c07ffc466 |
24 |
|
25 |
diff --git a/dev-python/aesara/aesara-2.1.3.ebuild b/dev-python/aesara/aesara-2.1.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..efa88e842a9 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/aesara/aesara-2.1.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=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+inherit distutils-r1 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 |
+} |