Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

156.12. scipy-1.18.1

Scientific computing for Python — optimisation, integration, signal, sparse, statistics and physical constants

1.18.1-1 · BSD-3-Clause · 11.4 SBU · 72.9 MiB, 1358 files · 41_system, 889 of 1047 · ports/core/sci-libs/scipy

Homepage: https://scipy.org/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/sci-libs.txt:

Cheap once numpy exists, and it closes a real hole: scipy.constants IS the CODATA table.

Depends on: python3, python3-setuptools, python3-pip, python3-meson-python, python3-cython, python3-pybind11, numpy, meson, ninja, openblas, gcc, pkgconf.

Required by (4): astropy, cura, gnuradio, uranium.

Sources: scipy-1.18.1.tar.gz (29.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install scipy'

build.sh:

export CFLAGS="${CFLAGS/-O2/-O3}" CXXFLAGS="${CXXFLAGS/-O2/-O3}"
pip3 install --ignore-installed --no-deps --no-index --no-build-isolation --root=$PKG --prefix=/usr \
	--config-settings=setup-args=-Duse-pythran=false \
	--config-settings=setup-args=-Dblas=openblas \
	--config-settings=setup-args=-Dlapack=openblas \
	.
find "$PKG"/usr/lib/python3*/site-packages/scipy -type d -name tests -prune -exec rm -rf {} +

Directories: /usr/lib/python3.14/site-packages/scipy, /usr/lib/python3.14/site-packages/scipy-1.18.1.dist-info, /usr/share/licenses/scipy.