1DOLLY 72TOOLCHAIN python-data-build3REQUIRES HOST runtime@04REQUIRES HOST display@05REQUIRES HOST input@06REQUIRES HOST download@07REQUIRES HOST dso@08REQUIRES HOST http@09REQUIRES HOST snapshot@010REQUIRES HOST sockets@011REQUIRES HOST threads@012REQUIRES HOST upload@01314# NumPy, Pandas, Matplotlib and what they need, built once from their PyPI15# releases as upstream builds its wheels, each installed in a root of its own,16# /opt/python-data/NAME, laid out as / is (usr/lib/python3.14/site-packages,17# usr/bin), so that one row takes one library into an image:18#   COPY RECIPE SHA256 /opt/python-data/numpy /19# README.md lists the roots each library needs beside it. The build tools20# (Meson, meson-python, Cython, pybind11, setuptools) serve this build alone.21FROM /v0.1.6/Dollyfile-system 33e5bcf65ef4a634da5dbf8e291a379148e7971aa0411fe1bdaa4e0332f24b9422INSTALL /v0.1.6/demos/python/Dollyfile-python a2bee41935e12229aed6db1256f11dde6b22125b8696ca3d31afcf70f9d7295b23INSTALL /v0.1.6/demos/tools/Dollyfile-meson 17d576c4dbd2f295e8fd6c051da7d4c4b860dde9455243e5bec8a7243b274d9024INSTALL /v0.1.6/demos/zero-ad/Dollyfile-freetype a637b97200e1ceeb75232ea15cd62810b10ebd1dc08aef8222012a5cd94c24e325INSTALL /v0.1.6/demos/zero-ad/Dollyfile-pkgconf c23689c5e826c5143377ee1b66de9a5c2830187fa84d6b7cc9bd4fe63e6d2bba26INSTALL /v0.1.6/demos/xonotic/Dollyfile-libjpeg 18ef3343607565fa359269403c975ff687c6ae154554c111427dad186129475227REQUIRES HEADER freetype228REQUIRES HEADER jpeglib29REQUIRES HEADER zlib30REQUIRES LIB    freetype31REQUIRES LIB    jpeg32REQUIRES LIB    z33REQUIRES TOOL   cp34REQUIRES TOOL   gzip35REQUIRES TOOL   mkdir36REQUIRES TOOL   meson37REQUIRES TOOL   ninja38REQUIRES TOOL   pkg-config39REQUIRES TOOL   pip40REQUIRES TOOL   python41REQUIRES TOOL   tar4243SOURCE /v0.1.6/dist/static/python-data/numpy-2.5.4.tar.gz 9a94cf751c9ad8ebaa835bcd3d40dacf8534ad086b88c38029b65123c7999d2a /tmp/python-data/numpy-2.5.4.tar.gz44SOURCE /v0.1.6/dist/static/python-data/pandas-3.0.5.tar.gz dca3734d6ab7c906e6730f0788b0a1dbb9f2467731f9711f77995c8e9d62d712 /tmp/python-data/pandas-3.0.5.tar.gz45SOURCE /v0.1.6/dist/static/python-data/matplotlib-3.10.9.tar.gz fd66508e8c6877d98e586654b608a0456db8d7e8a546eb1e2600efd957302358 /tmp/python-data/matplotlib-3.10.9.tar.gz46SOURCE /v0.1.6/dist/static/python-data/pillow-13.0.0.tar.gz cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510 /tmp/python-data/pillow-13.0.0.tar.gz47SOURCE /v0.1.6/dist/static/python-data/kiwisolver-1.5.1.tar.gz f1303ef2eec81262a4b708c3e858afe58d7c75ad91c1c05266eda7673369859a /tmp/python-data/kiwisolver-1.5.1.tar.gz48SOURCE /v0.1.6/dist/static/python-data/contourpy-1.4.0.tar.gz 20156f5a1ac4f8ce02656e39a61e82164a3d359796dc8026f75b062783d500e1 /tmp/python-data/contourpy-1.4.0.tar.gz49SOURCE /v0.1.6/dist/static/python-data/cycler-0.12.1-py3-none-any.whl 85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30 /tmp/python-data/cycler-0.12.1-py3-none-any.whl50SOURCE /v0.1.6/dist/static/python-data/fonttools-4.68.0-py3-none-any.whl d76f8fdcb6936f5e1045a0c9dd721a4bf11112e60d1e243bfa1d39f06a8b3104 /tmp/python-data/fonttools-4.68.0-py3-none-any.whl51SOURCE /v0.1.6/dist/static/python-data/pyparsing-3.3.3-py3-none-any.whl ece8c00a69cf01b45d0b1dedabb469c90d8caf996d4fda40f147627a122849a4 /tmp/python-data/pyparsing-3.3.3-py3-none-any.whl52SOURCE /v0.1.6/dist/static/python-data/packaging-26.3-py3-none-any.whl d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c /tmp/python-data/packaging-26.3-py3-none-any.whl53SOURCE /v0.1.6/dist/static/python-data/python_dateutil-4.0.0-py3-none-any.whl a5e246f79eb80475e691bf93862cead98decd8a498cf53ba0516fcdc0f50dc1c /tmp/python-data/python_dateutil-4.0.0-py3-none-any.whl54SOURCE /v0.1.6/dist/static/python-data/tzdata-2026.6-py2.py3-none-any.whl 0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec /tmp/python-data/tzdata-2026.6-py2.py3-none-any.whl55SOURCE /v0.1.6/dist/static/python-data/seaborn-0.13.2-py3-none-any.whl 636f8336facf092165e27924f223d3c62ca560b1f2bb5dff7ab7fad265361987 /tmp/python-data/seaborn-0.13.2-py3-none-any.whl56SOURCE /v0.1.6/dist/static/python-data/markupsafe-3.0.3.tar.gz 722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698 /tmp/python-data/markupsafe-3.0.3.tar.gz57SOURCE /v0.1.6/dist/static/python-data/jinja2-3.1.6-py3-none-any.whl 85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67 /tmp/python-data/jinja2-3.1.6-py3-none-any.whl58SOURCE /v0.1.6/dist/static/python-data/et_xmlfile-2.0.0-py3-none-any.whl 7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa /tmp/python-data/et_xmlfile-2.0.0-py3-none-any.whl59SOURCE /v0.1.6/dist/static/python-data/openpyxl-3.1.5-py2.py3-none-any.whl 5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2 /tmp/python-data/openpyxl-3.1.5-py2.py3-none-any.whl60SOURCE /v0.1.6/dist/static/python-data/tabulate-0.10.0-py3-none-any.whl f0b0622e567335c8fabaaa659f1b33bcb6ddfe2e496071b743aa113f8774f2d3 /tmp/python-data/tabulate-0.10.0-py3-none-any.whl61SOURCE /v0.1.6/dist/static/python-data/meson_python-0.22.1-py3-none-any.whl 258fde948cf45aab5df23fcc9e17a9050ee73d4e1002fe6cf86519f61c414778 /tmp/python-data/meson_python-0.22.1-py3-none-any.whl62SOURCE /v0.1.6/dist/static/python-data/cython-3.3.1-py3-none-any.whl 61abc7feedd20dac6c4ff7ab3a30e17136a067b242ab9253e2b4a6d9a72c2b61 /tmp/python-data/cython-3.3.1-py3-none-any.whl63SOURCE /v0.1.6/dist/static/python-data/pyproject_metadata-0.12.1-py3-none-any.whl f7162d580a96386a8eb096da06215f981f547d1490f03055ef99e323bc2da427 /tmp/python-data/pyproject_metadata-0.12.1-py3-none-any.whl64SOURCE /v0.1.6/dist/static/python-data/pybind11-3.1.0-py3-none-any.whl b8488090f8acffbcb6b5d6a85571a6827a0a2981ffb75e5a0b27b87c4a6b7dd0 /tmp/python-data/pybind11-3.1.0-py3-none-any.whl65SOURCE /v0.1.6/dist/static/python-data/setuptools-84.2.1-py3-none-any.whl ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2 /tmp/python-data/setuptools-84.2.1-py3-none-any.whl66SOURCE /v0.1.6/dist/static/python-data/setuptools_scm-9.2.2-py3-none-any.whl 30e8f84d2ab1ba7cb0e653429b179395d0c33775d54807fc5f1dd6671801aef7 /tmp/python-data/setuptools_scm-9.2.2-py3-none-any.whl67SOURCE /v0.1.6/dist/static/python-data/cppy-1.3.1-py3-none-any.whl 7ca132b6ef6187384738804bd3a453d4eab7e3274df6dcd35e5d92aae3404717 /tmp/python-data/cppy-1.3.1-py3-none-any.whl68SOURCE /v0.1.6/dist/static/python-data/versioneer-0.29-py3-none-any.whl 0f1a137bb5d6811e96a79bb0486798aeae9b9c6efc24b389659cebb0ee396cb9 /tmp/python-data/versioneer-0.29-py3-none-any.whl69# Qhull, which Matplotlib builds into its extensions, as Meson's package cache:70# its wrap builds it offline, unchanged.71SOURCE /v0.1.6/dist/static/python-data/qhull-8.0.2.tar.gz 8774e9a12c70b0180b95d6b0b563c5aa4bea8d5960c15e18ae3b6d2521d64f8b /tmp/python-data/packagecache/qhull-8.0.2.tgz7273# The build tools, for this build alone: the site-packages FOLDER of the74# python package is not repeated, so nothing installed there now is kept.75SLOP pip install --no-index --no-deps --no-compile --find-links /tmp/python-data \76  meson-python cython pyproject-metadata packaging pybind11 setuptools setuptools-scm cppy versioneer7778# install NAME VERSION [PIP-OPTION…]: NAME==VERSION from the staged files into79# /opt/python-data/NAME, whatever / holds (--ignore-installed), then into /80# for the libraries built after it.81FILE /tmp/python-data/install82    name="$1" version="$2"83    shift 284    pip install --no-index --find-links /tmp/python-data --no-build-isolation --no-deps --no-compile \85      --no-cache-dir --ignore-installed --no-warn-script-location --root "/opt/python-data/$name" "$@" \86      "$name==$version" || exit 187    cp -R "/opt/python-data/$name/." /8889SLOP slop /tmp/python-data/install numpy 2.5.490SLOP slop /tmp/python-data/install tzdata 2026.691SLOP slop /tmp/python-data/install python-dateutil 4.0.092SLOP slop /tmp/python-data/install pandas 3.0.593SLOP slop /tmp/python-data/install packaging 26.394SLOP slop /tmp/python-data/install pyparsing 3.3.395SLOP slop /tmp/python-data/install cycler 0.12.196SLOP slop /tmp/python-data/install fonttools 4.68.097SLOP slop /tmp/python-data/install kiwisolver 1.5.198# contourpy's default werror=true fails on what Clang 24 reports in pybind11's99# headers (-Wunused-template).100SLOP slop /tmp/python-data/install contourpy 1.4.0 --config-settings=setup-args=-Dwerror=false101# Pillow's FreeType module links -lfreetype alone, and the freetype package's102# static library needs libpng and zlib, which its freetype2.pc requires: the103# linker takes them from LDFLAGS.104SLOP LDFLAGS='-lpng16 -lz' slop /tmp/python-data/install pillow 13.0.0105# Pillow links libjpeg, whose licence asks for its README beside the program.106SLOP mkdir -p /opt/python-data/pillow/usr/share/licenses/libjpeg107SLOP cp /usr/share/licenses/libjpeg/README /opt/python-data/pillow/usr/share/licenses/libjpeg/README108# Matplotlib's own FreeType, 2.6.1, calls its autofitter through a function109# pointer of another signature (af_dummy_hints_apply takes two parameters, the110# call passes three), which Wasm traps: it links the freetype package's 2.14.3111# instead, statically (prefer_static), with the libpng and zlib that one reads.112# Dolly's compiler links no LTO bitcode: Matplotlib's default b_lto is refused.113SLOP MESON_PACKAGE_CACHE_DIR=/tmp/python-data/packagecache slop /tmp/python-data/install matplotlib 3.10.9 \114  --config-settings=setup-args=-Db_lto=false --config-settings=setup-args=-Dsystem-freetype=true \115  --config-settings=setup-args=-Dprefer_static=true116# Its extensions link FreeType, libpng and Qhull, whose licences its wheel does not carry.117SLOP gzip -dc /tmp/python-data/packagecache/qhull-8.0.2.tgz | tar -xf - -C /tmp/python-data118SLOP mkdir -p /opt/python-data/matplotlib/usr/share/licenses/qhull /opt/python-data/matplotlib/usr/share/licenses/libpng119SLOP cp -R /usr/share/licenses/freetype /opt/python-data/matplotlib/usr/share/licenses/freetype120SLOP cp /usr/share/licenses/libpng/LICENSE /opt/python-data/matplotlib/usr/share/licenses/libpng/LICENSE121SLOP cp /tmp/python-data/qhull-8.0.2/COPYING.txt /opt/python-data/matplotlib/usr/share/licenses/qhull/COPYING.txt122SLOP slop /tmp/python-data/install seaborn 0.13.2123# What pandas reads and writes besides CSV: HTML through Jinja's templates, Excel124# with openpyxl, Markdown with tabulate.125SLOP slop /tmp/python-data/install markupsafe 3.0.3126SLOP slop /tmp/python-data/install jinja2 3.1.6127SLOP slop /tmp/python-data/install et-xmlfile 2.0.0128SLOP slop /tmp/python-data/install openpyxl 3.1.5129SLOP slop /tmp/python-data/install tabulate 0.10.0130SLOP python -c 'import numpy, pandas, seaborn, matplotlib.pyplot as plt; plt.plot([0, 1], [1, 0]); plt.title("Dolly"); plt.savefig("/tmp/python-data/check.png")'131132FOLDER /opt/python-data133134ENTRY /bin/foreground -i /bin/slop135