package/python-numpy: bump to version 1.25.0
Migrate to meson package infrastructure.
License has changed due to date update:
c1ffdbc0c2
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
c77e25c3f1
commit
ca63464e37
@ -1,7 +1,7 @@
|
||||
# Copied from https://github.com/numpy/numpy/releases/tag/v1.23.5
|
||||
sha256 1b1766d6f397c18153d40015ddfc79ddb715cabadc04d2d228d4e5a8bc4ded1a numpy-1.23.5.tar.gz
|
||||
# Copied from https://github.com/numpy/numpy/releases/tag/v1.25.0
|
||||
sha256 f1accae9a28dc3cda46a91de86acf69de0d1b5f4edd44a9b0c3ceb8036dfff19 numpy-1.25.0.tar.gz
|
||||
# License files, locally calculated
|
||||
sha256 0f88787955e7131224f53a8c3f3e859dc502408e3a539a4dcf61fb7888b5b984 LICENSE.txt
|
||||
sha256 1034d3bd61783f3b5e7ec3e7ca818f4da4135132323a0ef99f4c0edb3c7f6bd2 LICENSE.txt
|
||||
sha256 c27d0a8026bdb8876562b720ab24d1688e3827a89f6083cd6e7e8caa9584aba3 numpy/core/src/multiarray/dragon4.c
|
||||
sha256 fbc539f47d0cf83bc61378080fb873d5c14630126cacbfe754035c3926daa5ec numpy/core/include/numpy/libdivide/LICENSE.txt
|
||||
sha256 a14cc25e10d40a3aa705b7de2fb764a6535d8ee9b2db4e1724900585457dfd55 numpy/linalg/lapack_lite/LICENSE.txt
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_NUMPY_VERSION = 1.23.5
|
||||
PYTHON_NUMPY_VERSION = 1.25.0
|
||||
PYTHON_NUMPY_SOURCE = numpy-$(PYTHON_NUMPY_VERSION).tar.gz
|
||||
PYTHON_NUMPY_SITE = https://github.com/numpy/numpy/releases/download/v$(PYTHON_NUMPY_VERSION)
|
||||
PYTHON_NUMPY_LICENSE = BSD-3-Clause, MIT, Zlib
|
||||
@ -15,30 +15,27 @@ PYTHON_NUMPY_LICENSE_FILES = \
|
||||
numpy/linalg/lapack_lite/LICENSE.txt \
|
||||
tools/npy_tempita/license.txt
|
||||
|
||||
PYTHON_NUMPY_SETUP_TYPE = setuptools
|
||||
PYTHON_NUMPY_DEPENDENCIES = host-python-cython
|
||||
PYTHON_NUMPY_DEPENDENCIES = host-python-cython python3
|
||||
HOST_PYTHON_NUMPY_DEPENDENCIES = host-python-cython
|
||||
|
||||
PYTHON_NUMPY_CONF_ENV += \
|
||||
_PYTHON_SYSCONFIGDATA_NAME=$(PKG_PYTHON_SYSCONFIGDATA_NAME) \
|
||||
PYTHONPATH=$(PYTHON3_PATH)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LAPACK),y)
|
||||
PYTHON_NUMPY_DEPENDENCIES += lapack
|
||||
PYTHON_NUMPY_CONF_OPTS += -Dlapack=lapack
|
||||
else
|
||||
PYTHON_NUMPY_ENV += BLAS=None LAPACK=None
|
||||
PYTHON_NUMPY_CONF_OPTS += -Dlapack=""
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
|
||||
PYTHON_NUMPY_BUILD_OPTS = --fcompiler=gnu95
|
||||
PYTHON_NUMPY_ENV += F90=$(TARGET_FC)
|
||||
ifeq ($(BR2_PACKAGE_OPENBLAS),y)
|
||||
PYTHON_NUMPY_DEPENDENCIES += openblas
|
||||
PYTHON_NUMPY_CONF_OPTS += -Dblas=openblas
|
||||
else
|
||||
PYTHON_NUMPY_BUILD_OPTS = --fcompiler=None
|
||||
PYTHON_NUMPY_CONF_OPTS += -Dblas=""
|
||||
endif
|
||||
|
||||
define PYTHON_NUMPY_CONFIGURE_CMDS
|
||||
-rm -f $(@D)/site.cfg
|
||||
echo "[DEFAULT]" >> $(@D)/site.cfg
|
||||
echo "library_dirs = $(STAGING_DIR)/usr/lib" >> $(@D)/site.cfg
|
||||
echo "include_dirs = $(STAGING_DIR)/usr/include" >> $(@D)/site.cfg
|
||||
endef
|
||||
|
||||
# Fixup the npymath.ini prefix path with actual target staging area where
|
||||
# numpy core was built. Without this, target builds using numpy distutils
|
||||
# extensions like python-scipy, python-numba cannot find -lnpymath since
|
||||
@ -55,5 +52,5 @@ PYTHON_NUMPY_POST_INSTALL_STAGING_HOOKS += PYTHON_NUMPY_FIXUP_NPY_PKG_CONFIG_FIL
|
||||
# in the staging area.
|
||||
PYTHON_NUMPY_INSTALL_STAGING = YES
|
||||
|
||||
$(eval $(python-package))
|
||||
$(eval $(host-python-package))
|
||||
$(eval $(meson-package))
|
||||
$(eval $(host-meson-package))
|
||||
|
Loading…
Reference in New Issue
Block a user