first commit: base 2024.08

Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
tao89959
2025-02-12 17:59:29 +08:00
committed by maoxiaochuan
commit f3217a7708
14356 changed files with 572894 additions and 0 deletions
@@ -0,0 +1,36 @@
From aae8b63ddffe014e9353c3e8d2604628433eb7d7 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sun, 4 Dec 2022 14:14:21 +0100
Subject: [PATCH] build sh4 FE
ensures FE_UPWARD and FE_DOWNWARD are defined for sh4 architecture.
Closes: #1007769.
[Retrieved from:
https://salsa.debian.org/python-team/packages/scipy/-/blob/master/debian/patches/build_sh4_FE.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
scipy/special/_round.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scipy/special/_round.h b/scipy/special/_round.h
index 013a25620..c321a1939 100644
--- a/scipy/special/_round.h
+++ b/scipy/special/_round.h
@@ -69,5 +69,12 @@ int fegetround()
#endif
+/* SH4 is not C99 compliant, see https://github.com/scipy/scipy/issues/15584 */
+#ifndef FE_UPWARD
+#define FE_UPWARD -1
+#endif
+#ifndef FE_DOWNWARD
+#define FE_DOWNWARD -1
+#endif
#endif /* _round.h */
--
2.38.1
+31
View File
@@ -0,0 +1,31 @@
config BR2_PACKAGE_PYTHON_SCIPY
bool "python-scipy"
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS # python-numpy
depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS # lapack
depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS # openblas
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
depends on BR2_HOST_GCC_AT_LEAST_9 # host-python-numpy
depends on BR2_TOOLCHAIN_HAS_FORTRAN # lapack
depends on BR2_INSTALL_LIBSTDCPP
select BR2_PACKAGE_LAPACK
select BR2_PACKAGE_OPENBLAS
select BR2_PACKAGE_PYTHON3_ZLIB # runtime scipy::io
select BR2_PACKAGE_PYTHON_NUMPY # runtime
select BR2_PACKAGE_PYTHON_PYBIND
help
The SciPy library is one of the core packages that make up the
SciPy stack. It provides many user-friendly and efficient
numerical routines such as routines for numerical integration,
interpolation, optimization, linear algebra and statistics.
https://www.scipy.org/scipylib/
comment "python-scipy needs glibc or musl toolchain w/ fortran, c++, gcc >= 9, host gcc >= 9"
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS
depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_FORTRAN || \
!BR2_INSTALL_LIBSTDCPP || !BR2_HOST_GCC_AT_LEAST_9 || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
(!BR2_TOOLCHAIN_USES_GLIBC && !BR2_TOOLCHAIN_USES_MUSL)
+10
View File
@@ -0,0 +1,10 @@
# md5, sha256 from https://pypi.org/pypi/scipy/json
md5 0e8eea0f7c4fe7d8102366230c96d66d scipy-1.11.4.tar.gz
sha256 90a2b78e7f5733b9de748f589f09225013685f9b218275257f8a8168ededaeaa scipy-1.11.4.tar.gz
# Locally computed sha256 checksums
sha256 5517022426a56179540ee6eace15fd723ef8fdb83b2900fed2152dd2e2f972a2 LICENSE.txt
sha256 606209a000716c5f66e33e180ce08434b96ed17db4975ab9723c6b5fbcc89609 scipy/ndimage/LICENSE.txt
sha256 3df9207af2fdb861af0ae3b22026f163b9bcfab4e525dc4943afe2ffa3f77624 scipy/optimize/tnc/LICENSE
sha256 f0cedf52503b2d42b83411a0a16e6fefac346dfad8fddc66f50050150123470c scipy/sparse/linalg/_dsolve/SuperLU/License.txt
sha256 0926566f9f406178d1214f8cc796e166b1213dd7c05e0c5b461a8b8ac9e50bbe scipy/sparse/linalg/_eigen/arpack/ARPACK/COPYING
sha256 34db0c0c4f931861d720555c9cd7a2e228d1290ba29af0f2ee80c41bb2038afb scipy/spatial/qhull_src/COPYING.txt
+47
View File
@@ -0,0 +1,47 @@
################################################################################
#
# python-scipy
#
################################################################################
PYTHON_SCIPY_VERSION = 1.11.4
PYTHON_SCIPY_SOURCE = scipy-$(PYTHON_SCIPY_VERSION).tar.gz
PYTHON_SCIPY_SITE = https://files.pythonhosted.org/packages/6e/1f/91144ba78dccea567a6466262922786ffc97be1e9b06ed9574ef0edc11e1
PYTHON_SCIPY_LICENSE = \
BSD-3-Clause, \
BSD-2-Clause, \
BSD, \
BSD-Style, \
MIT, \
Qhull
PYTHON_SCIPY_LICENSE_FILES = \
LICENSE.txt \
scipy/ndimage/LICENSE.txt \
scipy/optimize/tnc/LICENSE \
scipy/sparse/linalg/_dsolve/SuperLU/License.txt \
scipy/sparse/linalg/_eigen/arpack/ARPACK/COPYING \
scipy/spatial/qhull_src/COPYING.txt
PYTHON_SCIPY_CPE_ID_VENDOR = scipy
PYTHON_SCIPY_CPE_ID_PRODUCT = scipy
PYTHON_SCIPY_DEPENDENCIES += \
host-python-cython \
host-python-numpy \
host-python-pythran \
zlib \
lapack \
openblas \
python3 \
python-numpy \
python-pybind
PYTHON_SCIPY_INSTALL_STAGING = YES
PYTHON_SCIPY_CONF_ENV += \
_PYTHON_SYSCONFIGDATA_NAME=$(PKG_PYTHON_SYSCONFIGDATA_NAME) \
PYTHONPATH=$(PYTHON3_PATH)
PYTHON_SCIPY_CONF_OPTS = -Dblas=openblas -Dlapack=lapack
PYTHON_SCIPY_MESON_EXTRA_PROPERTIES = \
numpy-include-dir='$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/numpy/core/include'
$(eval $(meson-package))