mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Release notes: https://numpy.org/news/ Add new supported architectures. License hash changed due to date update:c1ffdbc0c2We need to build python-numpy with its vendored version of meson as it currently relies on features that are not yet upstream. To do this we can simply set the PYTHONPATH with the vendored meson path before the normal PYTHON3_PATH so that the vendored version will have precedence. We need to set this for both host and target numpy. We also need to set the architecture specific longdouble_format property as numpy is unable to determine the value for this without being able to execute target binaries. See:3e7e5c3cab/doc/source/building/cross_compilation.rstSigned-off-by: James Hilliard <james.hilliard1@gmail.com> [Bernd: Bumped to 2.4.0 Removed patch which is included in this release. Updated license hashes due to upstream commits: - copyright year bumps: https://github.com/numpy/numpy/commits/v2.4.0/LICENSE.txt - file move tools/npy_tempita/license.txt -> numpy/_build_utils/tempita/LICENSE.txt63a1fee8d186940987a9- directory move core -> _core and various code updates https://github.com/numpy/numpy/commits/v2.4.0/numpy/_core/src/multiarray/dragon4.c - directory move core -> _core https://github.com/numpy/numpy/commits/v2.4.0/numpy/_core/include/numpy/libdivide/LICENSE.txt Following Romain's review https://lists.buildroot.org/pipermail/buildroot/2024-November/767739.html host-python-numpy was switched back to host-python-package to install the f2py script needed by the upcoming bump of python-scipy. A dependency to host-python-meson-python is also needed. Removed PYTHON_NUMPY_LONGDOUBLE_FORMAT configure option for BR2_arceb after this arch was removed from buildroot. Changed path in PYTHON_NUMPY_FIXUP_NPY_PKG_CONFIG_FILES following upstream commit923f219077and updated opencv4 as well] Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
|
|
bool
|
|
# Numpy has some CPU specific code
|
|
default y if BR2_arc
|
|
default y if BR2_aarch64
|
|
default y if BR2_aarch64_be
|
|
default y if BR2_arm
|
|
default y if BR2_armeb
|
|
default y if BR2_i386
|
|
default y if BR2_m68k
|
|
default y if BR2_mips
|
|
default y if BR2_mipsel
|
|
default y if BR2_or1k
|
|
default y if BR2_powerpc
|
|
default y if BR2_powerpc64
|
|
default y if BR2_powerpc64le
|
|
default y if BR2_riscv
|
|
default y if BR2_sh
|
|
default y if BR2_sparc
|
|
default y if BR2_sparc64
|
|
default y if BR2_x86_64
|
|
|
|
config BR2_PACKAGE_PYTHON_NUMPY
|
|
bool "python-numpy"
|
|
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
# python-numpy needs fenv.h which is not provided by uclibc
|
|
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL
|
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9
|
|
help
|
|
NumPy is the fundamental package for scientific computing
|
|
with Python.
|
|
|
|
Note that NumPy needs fenv.h fully supported by the
|
|
C library.
|
|
|
|
http://www.numpy.org/
|
|
|
|
comment "python-numpy needs a glibc or musl toolchain w/ C++, gcc >= 9"
|
|
depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
|
|
depends on !BR2_INSTALL_LIBSTDCPP || \
|
|
!BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
|
|
!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
|