blob: 3dc7ee9efc06458ee4dd0b6013383c8d9c200863 (
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.5.2
pkgrel=1
pkgdesc='XLA library for JAX'
arch=('x86_64')
url='https://github.com/jax-ml/jax/'
license=('Apache-2.0')
groups=('jax')
depends=('python-absl'
'python-flatbuffers'
'python-ml-dtypes>=0.4.0'
'python-numpy'
'python-scipy')
makedepends=('clang18' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("jax-${pkgver}.tar.gz::$url/archive/refs/tags/jax-v${pkgver}.tar.gz")
sha256sums=('8e9de1e012dd65fc4a9eec8af4aa2bf6782767130a5d8e1c1e342b7d658280fe')
build() {
cd $srcdir/jax-jax-v$pkgver
JAXLIB_RELEASE=$pkgver python build/build.py build \
--wheels=jaxlib \
--bazel_startup_options="--output_user_root=$srcdir/bazel"\
--bazel_options='--action_env=JAXLIB_RELEASE' \
--use_clang --clang_path='/usr/lib/llvm18/bin/clang' \
--target_cpu_features=release
}
package() {
cd jax-jax-v$pkgver
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
python -m installer --compile-bytecode=1 --destdir=$pkgdir \
dist/jaxlib-$pkgver-*.whl
}
|