Package Details: python-flax 0.12.8-1

Git Clone URL: https://aur.archlinux.org/python-flax.git (read-only, click to copy)
Package Base: python-flax
Description: A neural network library and ecosystem for JAX designed for flexibility
Upstream URL: https://github.com/google/flax
Keywords: deep-learning jax
Licenses: Apache-2.0
Groups: jax
Submitter: wjhandley
Maintainer: wjhandley (daskol)
Last Packager: daskol
Votes: 5
Popularity: 0.000141
First Submitted: 2021-05-25 18:34 (UTC)
Last Updated: 2026-07-21 07:22 (UTC)

Latest Comments

« First ‹ Previous 1 2

daskol commented on 2023-02-16 11:43 (UTC)

Here is a patch which enumerates dependencies and bumps version.

diff --git a/PKGBUILD b/PKGBUILD
index 01391c3..eba80c3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,32 @@
 # Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
 pkgname=python-flax
 _name=${pkgname#python-}
-pkgver=0.6.3
+pkgver=0.6.5
 pkgrel=1
 pkgdesc="A neural network library and ecosystem for JAX designed for flexibility"
 arch=(any)
 url="https://github.com/google/flax"
 license=('Apache')
-groups=()
-depends=(python-jax)
-makedepends=(python-build python-installer)
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=(!emptydirs)
-install=
+groups=('jax')
+depends=(
+    'python-flax'
+    'python-jax'
+    'python-matplotlib'
+    'python-msgpack'
+    'python-numpy'
+    'python-optax'
+    'python-pyyaml'
+    'python-rich'
+    'python-tensorstore'
+    'python-typing_extensions'
+)
+makedepends=('python-build' 'python-installer' 'python-setuptools')
+optdepends=(
+    'python-orbax: Checkpointing routines for JAX.'
+    'tensorboard: TensorBoard visualization and logging.'
+)
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=(064f33f24f49ecef01c171cc770d22493fb8f9a36ed29db5e75f82d2052682a9)
+sha256sums=('12b921fe16198767d0b662a55024b698f6670b311463fa09d39194661fed1b24')

 build() {
     cd "$srcdir/$_name-$pkgver"
@@ -26,6 +35,6 @@ build() {

 package() {
     cd "$srcdir/$_name-$pkgver"
-    python -m installer --destdir="$pkgdir" dist/*.whl
+    python -m installer --compile-bytecode 1 --destdir="$pkgdir" dist/*.whl
 }

kuehnelth commented on 2022-06-28 21:21 (UTC)

This is missing python-build and python-installer make dependencies.