diff options
Diffstat (limited to 'dev-python/aesara')
-rw-r--r-- | dev-python/aesara/Manifest | 2 | ||||
-rw-r--r-- | dev-python/aesara/aesara-2.2.6.ebuild | 70 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest index 716fb1755d19..3a9df12fd4f5 100644 --- a/dev-python/aesara/Manifest +++ b/dev-python/aesara/Manifest @@ -2,8 +2,10 @@ DIST aesara-rel-2.2.2.tar.gz 8174668 BLAKE2B c95347e8b74f6600c3570177f86b7ebd751 DIST aesara-rel-2.2.3.tar.gz 8179701 BLAKE2B 53ef58d6f0ab33e7efe3d0eaa2b55153a2ab29c958b48f52f814fecf7f5fa65424465470cde0ebb8d2ef1ced6968fd01217d9f7bd61acc8843cde1a9c0a94cbe SHA512 21414230c0be2c31e08fd371ee69c3bb7098b2134a5aec006abeca00a333e025fcbfd10ebdcbf54d243e1bc8c45f301a2c3443531ba5eaf0fe3a1ac5645ae4f5 DIST aesara-rel-2.2.4.tar.gz 8180599 BLAKE2B 2b5e6ce0b0cbf0405d312f5b7c842057f05378c240c4dd36818c1b9d1b57667494c2472537e039ab16fac702a30a692bba5c8d5fc8801eb0c7e492d7f8e059b3 SHA512 3e0fe0cfa37f3b597ab94778dca60368aedbf9df79b4bb79812a190d77743addd1ddf5f234bf62c2dd744054204f03b84b358d0c58c27c28829b8fbe919bd151 DIST aesara-rel-2.2.5.tar.gz 8180714 BLAKE2B 8c94d26df9244c95a58dcf0c7f8d733841f25aad63046b12264e8081bbb5a7debad82f48dc9b3119c87d8d4709f9016205aeff025235fce2dc381832c9f5a312 SHA512 9b28163277b358ebb5bc4d77d7fb9f0e47c4aad3eb92de4702148990fb7cd367c67e42d161465129695869a6c23f31251705c6a24ebd36f048259d70c32f9a65 +DIST aesara-rel-2.2.6.tar.gz 8180674 BLAKE2B 6d2c237a748aeee524e4182c47b17a9f7e7325d94410f8c9d7e3dea1d22306dbaa32be1b6f3c471baffad30527451772c08eaaed4494bcceba1759e9f7e9c837 SHA512 360f280fb997b33fbcef08a278816e51b26e8ba4f6d9b0681984394f293d342b498d4633d5efc1b92d64b056b4cd63b918ea7dd46d00aa78519e00919586f842 EBUILD aesara-2.2.2.ebuild 2127 BLAKE2B 4da0582395b1de9bf9db5731b799b71a39eca5ea9b770f9a71d9835e0da1d2db4ad763d07fe9c7db4c503eeaf45002a69cb120a1a4d519cb06f63d8501bf0b3a SHA512 6aa5f0807a576eb4ac60097b3ac878ff991c4632d01104f209e3d66464de481241c3c7b64e2db49819711c15bdf05d720cfdcff338156070e94325c21248044c EBUILD aesara-2.2.3.ebuild 2129 BLAKE2B adcfc9b383b59507aec8e5620147b75dad1b4809db96e5ee1ea2f0fc4af542c5f97d9af1328995cf2a1f26db9d9cad195f0835aaed51bbcda471e71b6bf7edc8 SHA512 0ba992285cdce523bcf6fdb3a63e1904c29b6d69c3905b5e06715ad777f0e5a69afdc6f8518358da742ed92cc7594e7d277fb8574322b0ac0d15ca954cbd1d4a EBUILD aesara-2.2.4.ebuild 2129 BLAKE2B adcfc9b383b59507aec8e5620147b75dad1b4809db96e5ee1ea2f0fc4af542c5f97d9af1328995cf2a1f26db9d9cad195f0835aaed51bbcda471e71b6bf7edc8 SHA512 0ba992285cdce523bcf6fdb3a63e1904c29b6d69c3905b5e06715ad777f0e5a69afdc6f8518358da742ed92cc7594e7d277fb8574322b0ac0d15ca954cbd1d4a EBUILD aesara-2.2.5.ebuild 2129 BLAKE2B adcfc9b383b59507aec8e5620147b75dad1b4809db96e5ee1ea2f0fc4af542c5f97d9af1328995cf2a1f26db9d9cad195f0835aaed51bbcda471e71b6bf7edc8 SHA512 0ba992285cdce523bcf6fdb3a63e1904c29b6d69c3905b5e06715ad777f0e5a69afdc6f8518358da742ed92cc7594e7d277fb8574322b0ac0d15ca954cbd1d4a +EBUILD aesara-2.2.6.ebuild 2129 BLAKE2B adcfc9b383b59507aec8e5620147b75dad1b4809db96e5ee1ea2f0fc4af542c5f97d9af1328995cf2a1f26db9d9cad195f0835aaed51bbcda471e71b6bf7edc8 SHA512 0ba992285cdce523bcf6fdb3a63e1904c29b6d69c3905b5e06715ad777f0e5a69afdc6f8518358da742ed92cc7594e7d277fb8574322b0ac0d15ca954cbd1d4a MISC metadata.xml 506 BLAKE2B be65b6be62282fa47152985d79892fd04105a47e00a427ee8341d27aeff21b144bee7e7d0f16b2f4b617c941bdf5ebd9de37a42c39d117cdfd579c3035d35a74 SHA512 a207ec3db85a8e6f03feabd14da588f0b9ca9a88ab2495ade0f40b516b3bbd20fe78b14698d28da7ceed238737a9f4d63f587156ef609e846b485132d598c6bb diff --git a/dev-python/aesara/aesara-2.2.6.ebuild b/dev-python/aesara/aesara-2.2.6.ebuild new file mode 100644 index 000000000000..86721797fe0f --- /dev/null +++ b/dev-python/aesara/aesara-2.2.6.ebuild @@ -0,0 +1,70 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 multiprocessing optfeature + +MY_P=aesara-rel-${PV} +DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays" +HOMEPAGE="https://github.com/aesara-devs/aesara" +SRC_URI="https://github.com/aesara-devs/aesara/archive/rel-${PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND=" + dev-python/filelock[${PYTHON_USEDEP}] + >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/pytest-xdist[${PYTHON_USEDEP}] + )" + +distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme' +distutils_enable_tests pytest + +python_prepare_all() { + sed -i -e "s/tests.\*/tests\*/" setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local exclude=( + # speed tests are unreliable + tests/scan/test_basic.py::test_speed + tests/scan/test_basic.py::test_speed_rnn + tests/scan/test_basic.py::test_speed_batchrnn + tests/link/test_vm.py::test_speed + tests/link/test_vm.py::test_speed_lazy + tests/tensor/test_gc.py::test_merge_opt_runtime + + # rounding problem? + # https://github.com/aesara-devs/aesara/issues/477 + tests/tensor/test_math_scipy.py::TestGammaUBroadcast::test_good + tests/tensor/test_math_scipy.py::TestGammaUInplaceBroadcast::test_good + ) + + distutils_install_for_testing + # we do not package numba + epytest ${exclude[@]/#/--deselect } \ + --ignore tests/link/test_numba.py \ + -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" +} + +# https://dev.gentoo.org/~mgorny/python-guide/concept.html#packaging-pkgutil-style-namespaces-in-gentoo +python_install() { + rm "${BUILD_DIR}"/lib/bin/__init__.py || die + distutils-r1_python_install +} + +pkg_postinst() { + optfeature "GPU code generation/execution on NVIDIA gpus" dev-util/nvidia-cuda-toolkit dev-util/nvidia-cuda-sdk + optfeature "GPU/CPU code generation on CUDA and OpenCL devices" dev-libs/libgpuarray dev-python/pycuda +} |