Package Details: python2-numpy 1.16.6-3

Git Clone URL: https://aur.archlinux.org/python2-numpy.git (read-only, click to copy)
Package Base: python2-numpy
Description: Scientific tools for Python 2
Upstream URL: https://www.numpy.org/
Licenses: custom
Submitter: Archange
Maintainer: hexd
Last Packager: hexd
Votes: 22
Popularity: 0.22
First Submitted: 2022-05-15 08:41 (UTC)
Last Updated: 2023-07-15 21:24 (UTC)

Latest Comments

showipatlogon commented on 2024-01-22 16:05 (UTC)

In my case it doesn't compile because the PYTHONHOME variable isn't declared. So to fix this I have to modify the PKGBUILD file by adding that declaration in the prepare() section as such:

prepare() {

  export PYTHONHOME=/usr

  cd numpy-$pkgver
  sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
      -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
      -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
      -i $(find . -name '*.py')
}

Not sure if that is something you would like to add... More an FYI for those who may have the same issue. Thx !

hexd commented on 2023-07-15 21:25 (UTC)

@xuiqzy you don't have BLAS and LAPACK. I'm now installing these with blas-openblas, as @MarsSeed mentioned.

xuiqzy commented on 2023-07-14 19:04 (UTC)

Failure in build, see last lines of build output:

...
creating build/temp.linux-x86_64-2.7/numpy/fft
compile options: '-Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/common -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/common -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -c'
gcc: numpy/fft/fftpack.c
gcc: numpy/fft/fftpack_litemodule.c
gcc -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/lib/openssl-1.1 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -ffat-lto-objects build/temp.linux-x86_64-2.7/numpy/fft/fftpack_litemodule.o build/temp.linux-x86_64-2.7/numpy/fft/fftpack.o -L/usr/lib -Lbuild/temp.linux-x86_64-2.7 -lpython2.7 -o build/lib.linux-x86_64-2.7/numpy/fft/fftpack_lite.so
building 'numpy.linalg.lapack_lite' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -DNDEBUG -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -ffat-lto-objects -fPIC

creating build/temp.linux-x86_64-2.7/numpy/linalg
creating build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite
compile options: '-DNO_ATLAS_INFO=1 -I/usr/local/include -I/usr/include -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/common -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/common -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -c'
gcc: numpy/linalg/lapack_litemodule.c
gcc: numpy/linalg/lapack_lite/python_xerbla.c
/usr/bin/gfortran -Wall -g -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/python_xerbla.o -L/usr/lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib -L/usr/lib -Lbuild/temp.linux-x86_64-2.7 -llapack -llapack -lblas -lblas -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so
/usr/bin/ld: cannot find -llapack: No such file or directory
/usr/bin/ld: cannot find -llapack: No such file or directory
/usr/bin/ld: cannot find -lblas: No such file or directory
/usr/bin/ld: cannot find -lblas: No such file or directory
collect2: error: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -g -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now build/temp.linux-x86_64-2.7/numpy/linalg/lapack_litemodule.o build/temp.linux-x86_64-2.7/numpy/linalg/lapack_lite/python_xerbla.o -L/usr/lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib -L/usr/lib -Lbuild/temp.linux-x86_64-2.7 -llapack -llapack -lblas -lblas -lpython2.7 -lgfortran -o build/lib.linux-x86_64-2.7/numpy/linalg/lapack_lite.so" failed with exit status 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python2-numpy-exit status 4

MarsSeed commented on 2023-07-02 11:47 (UTC) (edited on 2023-07-02 19:47 (UTC) by MarsSeed)

Please switch optdepend from openblas to blas-openblas. Arch openblas package is incomplete, only the new blas-openblas carries the full OpenBLAS Lapack suite. To use optimized OpenBLAS linalg in NumPy, users need to install the latter (as only that one provides lapack and (c)blas from the OpenBLAS project).

Background:

Arch announced on June 14, 2023 the new blas-openblas repo package, which finally offers the full suite of OpenBLAS Lapack, with their blas and lapack implementation and corresponding cblas/lapacke interfaces.

This fulfils Arch request ticket FS#66092.

If I understand INSTALL.rst correctly, NumPy need not be (re)compiled with openblas, enough to provide the openblas implementation at runtime.

Edit: Added more, relevant info with links.

hexd commented on 2023-02-01 05:39 (UTC)

Downloaded again and:

==> Validating source files with sha512sums...
    python2-numpy-1.16.6.tar.gz ... Passed
[...]
==> Finished making: python2-numpy 1.16.6-2

If the package is not building for you, maybe the downloaded tarball is corrupt/incomplete.

Cebtenzzre commented on 2023-01-30 19:11 (UTC)

This package no longer builds because the checksum of the tarball has changed.

hexd commented on 2022-08-28 03:55 (UTC)

There's no new release for Python 2, so I unflagged it. Only Cython 2 became no longer available in the community repo, but I've just added it to AUR.

korimitsu commented on 2022-08-27 23:49 (UTC) (edited on 2022-08-27 23:50 (UTC) by korimitsu)

Fails to build:

$ pamac build python2-numpy
Preparing...
Checking python2-numpy dependencies...
Resolving dependencies...
Warning: cannot resolve "cython2", a dependency of "python2-numpy"
Error: Failed to prepare transaction:
could not satisfy dependencies:
- unable to satisfy dependency 'cython2' required by python2-numpy



Edit build files : [e] 
Apply transaction ? [e/y/N] y

Transaction cancelled.