[buildout]
# Scipy requires BLAS/LAPACK libraries.
extends =
  ../meson/buildout.cfg
  ../ninja/buildout.cfg
  ../numpy/openblas.cfg
  ../pandas/buildout.cfg
  ../pkgconfig/buildout.cfg
parts = scipy

[scipy-env]
<= numpy-env
PATH=${meson:location}/bin:${ninja:location}/bin:${pkgconfig:location}/bin:${buildout:bin-directory}:%(PATH)s
PKG_CONFIG_PATH = ${openblas:location}/lib/pkgconfig

[scipy]
recipe = zc.recipe.egg:custom
egg = scipy
environment = scipy-env
setup-eggs = ${numpy:egg}
rpath = ${numpy:rpath}
depends =
  ${scipy-pythonpath:recipe}
  ${scipy-pkgconfig:recipe}

[scipy-pythonpath]
<= macro.pythonpath.eggs
environment = scipy-env
eggs = ${scipy-setup-eggs:eggs}

[scipy-pkgconfig]
<= macro.variable.eggs
variable = PKG_CONFIG_PATH
environment = scipy-env
eggs = pybind11
subpaths =
  pybind11 pybind11/share/pkgconfig/
depends = ${scipy-setup-eggs:recipe}

[scipy-setup-eggs]
recipe = zc.recipe.egg
scripts =
  cython
  pythran
eggs =
  ${cython:egg}
  ${numpy:egg}
  ${pandas:egg}
  meson-python
  pythran
  pybind11

[versions]
pybind11 = 2.11.1
scipy = 1.12.0
meson-python = 0.13.2:whl
pyproject-metadata = 0.8.0:whl
meson = 1.4.1
beniget = 0.4.1
gast = 0.5.3
pythran = 0.11.0:whl

[versions:sys.version_info < (3,11)]
tomli = 2.0.1:whl


[scipy:sys.version_info < (3,8)]
depends =

[versions:sys.version_info < (3,8)]
scipy = 1.0.1
