@ -6,11 +6,11 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := numpy
PKG_NAME := numpy
PKG_VERSION := 1.20.2
PKG_VERSION := 1.21.1
PKG_RELEASE := 1
PKG_RELEASE := 1
PYPI_NAME := $( PKG_NAME)
PYPI_NAME := $( PKG_NAME)
PKG_HASH := 878922bf5ad7550aa044aa9301d417e2d3ae50f0f577de92051d739ac6096cee
PKG_HASH := dff4af63638afcc57a3dfb9e4b26d434a7a602d225b42d746ea7fe2edf1342fd
PKG_MAINTAINER := Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_MAINTAINER := Alexandru Ardelean <ardeleanalex@gmail.com>
@ -18,6 +18,9 @@ PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES := LICENSE.txt
PKG_LICENSE_FILES := LICENSE.txt
PKG_CPE_ID := cpe:/a:numpy:numpy
PKG_CPE_ID := cpe:/a:numpy:numpy
PKG_CONFIG_DEPENDS := \
CONFIG_NUMPY_OPENBLAS_SUPPORT
# yes, zip... sigh
# yes, zip... sigh
PYPI_SOURCE_EXT := zip
PYPI_SOURCE_EXT := zip
HOST_PYTHON3_PACKAGE_BUILD_DEPENDS := Cython
HOST_PYTHON3_PACKAGE_BUILD_DEPENDS := Cython
@ -32,7 +35,39 @@ define Package/python3-numpy
CATEGORY:= Languages
CATEGORY:= Languages
TITLE:= The fundamental package for scientific computing with Python
TITLE:= The fundamental package for scientific computing with Python
URL:= https://www.numpy.org/
URL:= https://www.numpy.org/
DEPENDS:= @!SOFT_FLOAT +INSTALL_GFORTRAN:libgfortran +python3
DEPENDS:= @!SOFT_FLOAT +INSTALL_GFORTRAN:libgfortran +python3 \
+NUMPY_OPENBLAS_SUPPORT:openblas
e n d e f
# We need to duplicate the omitted arhitectures same as openblas
d e f i n e P a c k a g e / p y t h o n 3 - n u m p y / c o n f i g
m e n u "Configuration"
d e p e n d s o n P A C K A G E _ p y t h o n 3 - n u m p y
d e p e n d s o n ! p o w e r p c
d e p e n d s o n ! a r c
c o n f i g N U M P Y _ O P E N B L A S _ S U P P O R T
bool "Enable OpenBLAS support"
default n
e n d m e n u
e n d e f
i f d e f C O N F I G _ N U M P Y _ O P E N B L A S _ S U P P O R T
d e f i n e B u i l d / P r e p a r e / n u m p y - s i t e c f g
echo "[DEFAULT]" > $( PKG_BUILD_DIR) /site.cfg
echo " library_dirs = $( STAGING_DIR) /usr/lib " >> $( PKG_BUILD_DIR) /site.cfg
echo " include_dirs = $( STAGING_DIR) /usr/include " >> $( PKG_BUILD_DIR) /site.cfg
echo >> $( PKG_BUILD_DIR) /site.cfg
echo "[openblas]" >> $( PKG_BUILD_DIR) /site.cfg
echo "libraries = openblas" >> $( PKG_BUILD_DIR) /site.cfg
echo "runtime_library_dirs = /usr/lib" >> $( PKG_BUILD_DIR) /site.cfg
e n d e f
e n d i f
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
$( call Build/Prepare/numpy-sitecfg)
e n d e f
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - n u m p y / d e s c r i p t i o n
d e f i n e P a c k a g e / p y t h o n 3 - n u m p y / d e s c r i p t i o n