blob: d1ebbabd88167cb71e66afd7ca94cdb95283cf7d (
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
29
30
31
32
33
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname=python-jaxlib
pkgver=0.4.3
pkgrel=3
pkgdesc='XLA library for JAX'
arch=('x86_64')
url='https://github.com/google/jax/'
license=('Apache')
depends=('absl-py'
'python'
'python-flatbuffers'
'python-numpy'
'python-scipy')
makedepends=('python-installer' 'python-setuptools' 'python-wheel')
conflicts=('python-jaxlib')
provides=('python-jaxlib')
source=("jaxlib-${pkgver}.tar.gz::https://github.com/google/jax/archive/refs/tags/jaxlib-v${pkgver}.tar.gz")
sha256sums=('2104735dc22be2b105e5517bd5bc6ae97f40e8e9e54928cac1585c6112a3d910')
build() {
cd $srcdir/jax-jaxlib-v$pkgver
python build/build.py \
--target_cpu_features native
}
package() {
cd $srcdir/jax-jaxlib-v$pkgver
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
$srcdir/jax-jaxlib-v$pkgver/dist/jaxlib-$pkgver-*.whl
}
|