blob: 362f93918bf19ab4e6d444a0e2e5cb3dce69066a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Oystein Sture <oysstu (at) gmail (dot) com>
# Contributor:
pkgname=python-tensorflow-probability
pkgver=0.25.0
pkgrel=1
pkgdesc="Probabilistic reasoning and statistical analysis in TensorFlow"
url="https://github.com/tensorflow/probability"
arch=('any')
license=('APACHE')
depends=('python' 'python-tensorflow' 'python-numpy' 'python-six' 'python-decorator' 'python-cloudpickle' 'python-gast' 'python-dm-tree' 'python-absl')
makedepends=('python-setuptools' 'bazel')
source=("https://github.com/tensorflow/probability/archive/v${pkgver}.tar.gz")
sha256sums=('73cf3e52d3b5ee48fc919631e7fa3621849b8ce8d453017016a5148815856bc2')
build() {
# Force OpenJDK-11
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
cd "${srcdir}"/probability-${pkgver}
bazel build --copt=-O3 --copt=-march=native :pip_pkg
cd ./bazel-bin/pip_pkg.runfiles/_main
python setup.py build --release
}
package() {
cd "${srcdir}"/probability-${pkgver}/bazel-bin/pip_pkg.runfiles/_main
python setup.py install --release --root=${pkgdir} --optimize=1 --skip-build
}
|