summaryrefslogtreecommitdiff
path: root/dev-python/theano-pymc
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/theano-pymc')
-rw-r--r--dev-python/theano-pymc/Manifest3
-rw-r--r--dev-python/theano-pymc/metadata.xml12
-rw-r--r--dev-python/theano-pymc/theano-pymc-1.0.13-r1.ebuild42
3 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/theano-pymc/Manifest b/dev-python/theano-pymc/Manifest
new file mode 100644
index 000000000000..5eaa3101ecc9
--- /dev/null
+++ b/dev-python/theano-pymc/Manifest
@@ -0,0 +1,3 @@
+DIST theano-pymc-1.0.13.tar.gz 12975871 BLAKE2B 71528868885084d7c37f1f5cc5156aca5e764d09f0dc57aa46e21240ee2959aafb5882aef8977d9f215b051265d0d9bc3a7097ac0bb6d427cfc076ea6f591905 SHA512 da25e386965695a5630c54a671a7a573d0f0fae2eeeacf4f65130e4e4caf416373852ac14b1eb07ae39c194febe854d71fffe2adc24c348f64a4b73b43564229
+EBUILD theano-pymc-1.0.13-r1.ebuild 1228 BLAKE2B 4c54029fa720820f537d3e0655278167a9308de193afeff044203726b0539a3d41e916d4cc7a7f289a6d02878c851f7701f0b974454c58b4a1ec84986d04fa84 SHA512 ce0851f9e57c6b6c9a458f437f22d47841fa281c10b14b1a641eb24275a88b8091e12a07ec59f706fc6469fc5c989f98ba0055d7a75fdcf9556a236e82036957
+MISC metadata.xml 400 BLAKE2B a9f06ebe35c874d15d1a6608e8398a79480b24cc0ec1b7a45db8c8d18aa24d26817c47a62ad13fba1f32286699749679568b75593c0909dd2ef5785450b379f2 SHA512 530f9e294ab4481624cd9757d67a9e8a67dc2a023002a7f312de619bf05bfd1a06c30ecebd0606f76a1dbe37176697e990867c95de9f411b7631bcc341192e93
diff --git a/dev-python/theano-pymc/metadata.xml b/dev-python/theano-pymc/metadata.xml
new file mode 100644
index 000000000000..00af8f28ecf4
--- /dev/null
+++ b/dev-python/theano-pymc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">Theano-PyMC</remote-id>
+ <remote-id type="github">pymc-devs/Theano-PyMC</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/theano-pymc/theano-pymc-1.0.13-r1.ebuild b/dev-python/theano-pymc/theano-pymc-1.0.13-r1.ebuild
new file mode 100644
index 000000000000..695a31afb335
--- /dev/null
+++ b/dev-python/theano-pymc/theano-pymc-1.0.13-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays"
+HOMEPAGE="https://github.com/pymc-devs/Theano-PyMC"
+SRC_URI="https://github.com/pymc-devs/Theano-PyMC/archive/rel-${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/Theano-PyMC-rel-${PV}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]"
+
+distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme'
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ sed -i -e "s/, 'flake8'//" setup.py || die
+ sed -i -e "s/tests.\*/tests\*/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ distutils_install_for_testing
+ pytest -vv || die "Tests failed with ${EPYTHON}"
+}
+
+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
+}