1config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS 2 bool 3 # Numpy has some CPU specific code 4 default y if BR2_arc 5 default y if BR2_aarch64 6 default y if BR2_arm 7 default y if BR2_armeb 8 default y if BR2_i386 9 default y if BR2_mips 10 default y if BR2_mipsel 11 default y if BR2_powerpc 12 default y if BR2_powerpc64 13 default y if BR2_sh 14 default y if BR2_x86_64 15 16config BR2_PACKAGE_PYTHON_NUMPY 17 bool "python-numpy" 18 depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS 19 depends on BR2_INSTALL_LIBSTDCPP 20 # python-numpy needs fenv.h which is not provided by uclibc 21 depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL 22 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 23 help 24 NumPy is the fundamental package for scientific computing 25 with Python. 26 27 Note that NumPy needs fenv.h fully supported by the 28 C library. 29 30 http://www.numpy.org/ 31 32comment "python-numpy needs a glibc or musl toolchain w/ C++, gcc >= 9" 33 depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS 34 depends on !BR2_INSTALL_LIBSTDCPP || \ 35 !BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \ 36 !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) 37