Package Details: python-numcodecs 0.16.3-1

Git Clone URL: https://aur.archlinux.org/python-numcodecs.git (read-only, click to copy)
Package Base: python-numcodecs
Description: A Python package providing buffer compression and transformation codecs for use in data storage and communication applications
Upstream URL: https://github.com/zarr-developers/numcodecs
Licenses: MIT
Submitter: flying-sheep
Maintainer: flying-sheep
Last Packager: flying-sheep
Votes: 2
Popularity: 0.000000
First Submitted: 2019-01-02 14:15 (UTC)
Last Updated: 2025-11-08 14:09 (UTC)

Latest Comments

flying-sheep commented on 2025-05-29 13:27 (UTC)

Thanks! If I had read the comments, I wouldn’t have had to come to the same conclusions lol

micwoj92 commented on 2025-05-28 21:56 (UTC)

Update to 0.16.1, build fix and dependency update:

--- a/PKGBUILD +++ b/PKGBUILD @@ -1,21 +1,21 @@  # Maintainer: Philipp A. <flying-sheep@web.de>  _name=numcodecs  pkgname=python-numcodecs -pkgver=0.15.1 +pkgver=0.16.1  pkgrel=1  pkgdesc='A Python package providing buffer compression and transformation codecs for use in data storage and communication applications'  arch=(x86_64)  url="https://github.com/zarr-developers/$_name"  license=(MIT) -depends=(python-numpy python-deprecated) +depends=(python-numpy python-typing_extensions)  makedepends=(cython python-py-cpuinfo python-setuptools python-setuptools-scm python-build python-installer python-wheel)  optdepends=(python-msgpack python-zfpy python-pcodec python-crc32c)  source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") -sha256sums=('eeed77e4d6636641a2cc605fbc6078c7a8f2cc40f3dfa2b3f61e52e6091b04ff') +sha256sums=('c47f20d656454568c6b4697ce02081e6bbb512f198738c6a56fafe8029c97fb1')   build() {         cd "$_name-$pkgver" -       export CFLAGS="$CFLAGS -march=native" +       export CFLAGS="$CFLAGS -march=native -std=gnu17"         python -m build --wheel --no-isolation  }  

flying-sheep commented on 2024-10-28 08:13 (UTC)

@MarsSeed: You said “pls remove the nonexistent optdepends”

But why?

flying-sheep commented on 2023-01-12 17:49 (UTC) (edited on 2023-01-12 17:49 (UTC) by flying-sheep)

It’s defined here: https://github.com/zarr-developers/numcodecs/blob/955019b55a31b4a03c76f62edfde5df2301282c4/numcodecs/blosc.pyx#L21

I guess that cython syntax means it needs /usr/include/blosc.h (in the blosc package) at build time. I should add that to build deps.

tujir commented on 2022-12-19 14:39 (UTC)

Do we need python-blosc as dependency?

File "/usr/lib/python3.10/site-packages/zarr/__init__.py", line 2, in <module>   from zarr.codecs import * File "/usr/lib/python3.10/site-packages/zarr/codecs.py", line 3, in <module>   from numcodecs import get_codec, Blosc, Pickle, Zlib, Delta, AsType, BZ2 

ImportError: cannot import name 'Blosc' from 'numcodecs' (/usr/lib/python3.10/site-packages/numcodecs/init.py)

flying-sheep commented on 2022-09-15 10:35 (UTC)

fixed

carlosal1015 commented on 2022-09-12 17:04 (UTC)

Hi, I have the following message error

==> Making package: python-numcodecs 0.10.2-1 (Mon Sep 12 12:03:25 2022) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Removing existing $pkgdir/ directory... ==> Starting build()... * Getting dependencies for wheel... [numcodecs] setting up Blosc extension [numcodecs] compiling Blosc extension with SSE2 support [numcodecs] compiling Blosc extension with AVX2 support Compiling numcodecs/blosc.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd. [1/1] Cythonizing numcodecs/blosc.pyx [numcodecs] setting up Zstandard extension Compiling numcodecs/zstd.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd. [1/1] Cythonizing numcodecs/zstd.pyx [numcodecs] setting up LZ4 extension Compiling numcodecs/lz4.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd. [1/1] Cythonizing numcodecs/lz4.pyx [numcodecs] setting up compat extension Compiling numcodecs/compat_ext.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/cpython/buffer.pxd. [1/1] Cythonizing numcodecs/compat_ext.pyx [numcodecs] setting up shuffle extension [numcodecs] setting up vlen extension Compiling numcodecs/vlen.pyx because it depends on /usr/lib/python3.10/site-packages/Cython/Includes/libc/string.pxd. [1/1] Cythonizing numcodecs/vlen.pyx  ERROR Missing dependencies:         wheel ==> ERROR: A failure occurred in build().     Aborting...  -> error making: python-numcodecs 

mauritiusdadd commented on 2022-08-05 08:04 (UTC)

Hi, can you add python-wheel and python-setuptools-scm to make dependencies? The package fails to build without them in a clean environment

flying-sheep commented on 2022-01-27 07:47 (UTC)

good idea, done!

Strawpants commented on 2022-01-25 14:57 (UTC)

I tried compiling this on a relatively old computer (Nehalem) and got an illegal (hardware) instruction as reported here: https://github.com/zarr-developers/numcodecs/issues/252

The reason is apparently that the cpu doesn't support avx2 instructions.

I recommend to change in the PKGBUILD export CFLAGS="$CFLAGS -msse2 -mavx2" to export CFLAGS="$CFLAGS -march=native"

so only the available instructions will be build (both sse2 and avx2 when available), but the build will also work on older architectures.