blob: 4675121b0360c0c85ac169adf82d48169607e427 (
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
34
35
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname=python-jaxlib
pkgver=0.4.35
pkgrel=1
pkgdesc='XLA library for JAX'
arch=('x86_64')
url='https://github.com/jax-ml/jax/'
license=('Apache')
groups=('jax')
depends=('python-absl'
'python-flatbuffers'
'python-ml-dtypes>=0.4.0'
'python-numpy'
'python-scipy')
makedepends=('clang' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("jax-${pkgver}.tar.gz::$url/archive/refs/tags/jax-v${pkgver}.tar.gz")
sha256sums=('65e086708ae56670676b7b2340ad82b901d8c9993d1241a839c8990bdb8d6212')
build() {
cd $srcdir/jax-jax-v$pkgver
JAXLIB_RELEASE=$pkgver python build/build.py \
--bazel_startup_options="--output_user_root=$srcdir/bazel"\
--bazel_options='--action_env=JAXLIB_RELEASE' \
--noenable_cuda \
--target_cpu_features=release
}
package() {
cd $srcdir/jax-jax-v$pkgver
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
$srcdir/jax-jax-v$pkgver/dist/jaxlib-$pkgver-*.whl
}
|