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_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
	depends on BR2_TOOLCHAIN_HAS_FORTRAN # lapack
	depends on BR2_INSTALL_LIBSTDCPP
	select BR2_PACKAGE_LAPACK
	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 toolchain w/ fortran and c++ and glibc or musl"
	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
	depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS
	depends on !BR2_TOOLCHAIN_HAS_FORTRAN || \
		!BR2_INSTALL_LIBSTDCPP || \
		(!BR2_TOOLCHAIN_USES_GLIBC && !BR2_TOOLCHAIN_USES_MUSL)
