1DOLLY 82TOOLCHAIN 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 /Dollyfile-system 5eb06684bc61be6a1d9af98b8a740fba55b22ff4216f6cdb117c6ff6583104f022INSTALL /demos/python/Dollyfile-python caf80d3cd27594e1ed0bc4bbd8d586359be411b6f5328e5d3fe89c4a6951576f23INSTALL /demos/tools/Dollyfile-meson e388b70e271dd313d88f9ef1de369f9dde67e1598f77f56bb15fb89eaebb447f24INSTALL /demos/tools/Dollyfile-freetype 0a09133179a4a88a258e34af41b7e89c650fdba41a7c12e0c8d3d1c125f9a02625INSTALL /demos/tools/Dollyfile-pkgconf 7aa2fb7ca6d1e11fc4a062fa683ca4a6980bcc85f06fbedee1d11b3fe99f901126INSTALL /demos/tools/Dollyfile-libjpeg-turbo 537d4ec44d628942007432cc593d2dbe7e2afcbef65d0d4f94b4dd6dc06eb69427# download and upload, which move files in and out of its shell (transfer).28INSTALL /Dollyfile-transfer 06c7f7e4b4d53f6ef7d342f48293d1e61af6e9a330d4d857b597f26471ce8c0729REQUIRES HEADER freetype230REQUIRES HEADER jpeglib31REQUIRES HEADER zlib32REQUIRES LIB    freetype33REQUIRES LIB    jpeg34REQUIRES LIB    z35REQUIRES TOOL   cp36REQUIRES TOOL   gzip37REQUIRES TOOL   mkdir38REQUIRES TOOL   meson39REQUIRES TOOL   ninja40REQUIRES TOOL   pkg-config41REQUIRES TOOL   pip42REQUIRES TOOL   python43REQUIRES TOOL   tar44REQUIRES TOOL   test4546SOURCE /dist/static/python-data/numpy-2.5.4.tar.gz 9a94cf751c9ad8ebaa835bcd3d40dacf8534ad086b88c38029b65123c7999d2a /tmp/python-data/numpy-2.5.4.tar.gz47SOURCE /dist/static/python-data/pandas-3.0.5.tar.gz dca3734d6ab7c906e6730f0788b0a1dbb9f2467731f9711f77995c8e9d62d712 /tmp/python-data/pandas-3.0.5.tar.gz48SOURCE /dist/static/python-data/matplotlib-3.10.9.tar.gz fd66508e8c6877d98e586654b608a0456db8d7e8a546eb1e2600efd957302358 /tmp/python-data/matplotlib-3.10.9.tar.gz49SOURCE /dist/static/python-data/pillow-13.0.0.tar.gz cdcd1ba258178f7356d74170c9a81ba4eab6a5d55748bc402a5a2a6fe6be3510 /tmp/python-data/pillow-13.0.0.tar.gz50SOURCE /dist/static/python-data/kiwisolver-1.5.1.tar.gz f1303ef2eec81262a4b708c3e858afe58d7c75ad91c1c05266eda7673369859a /tmp/python-data/kiwisolver-1.5.1.tar.gz51SOURCE /dist/static/python-data/contourpy-1.4.0.tar.gz 20156f5a1ac4f8ce02656e39a61e82164a3d359796dc8026f75b062783d500e1 /tmp/python-data/contourpy-1.4.0.tar.gz52SOURCE /dist/static/python-data/cycler-0.12.1-py3-none-any.whl 85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30 /tmp/python-data/cycler-0.12.1-py3-none-any.whl53SOURCE /dist/static/python-data/fonttools-4.68.0-py3-none-any.whl d76f8fdcb6936f5e1045a0c9dd721a4bf11112e60d1e243bfa1d39f06a8b3104 /tmp/python-data/fonttools-4.68.0-py3-none-any.whl54SOURCE /dist/static/python-data/pyparsing-3.3.3-py3-none-any.whl ece8c00a69cf01b45d0b1dedabb469c90d8caf996d4fda40f147627a122849a4 /tmp/python-data/pyparsing-3.3.3-py3-none-any.whl55SOURCE /dist/static/python-data/packaging-26.3-py3-none-any.whl d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c /tmp/python-data/packaging-26.3-py3-none-any.whl56SOURCE /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.whl57SOURCE /dist/static/python-data/tzdata-2026.6-py2.py3-none-any.whl 0a10eec6e13ef16b627fabed9a5f2ba61a62b1c67f327305f4e7e412a70b4aec /tmp/python-data/tzdata-2026.6-py2.py3-none-any.whl58SOURCE /dist/static/python-data/seaborn-0.13.2-py3-none-any.whl 636f8336facf092165e27924f223d3c62ca560b1f2bb5dff7ab7fad265361987 /tmp/python-data/seaborn-0.13.2-py3-none-any.whl59SOURCE /dist/static/python-data/markupsafe-3.0.3.tar.gz 722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698 /tmp/python-data/markupsafe-3.0.3.tar.gz60SOURCE /dist/static/python-data/jinja2-3.1.6-py3-none-any.whl 85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67 /tmp/python-data/jinja2-3.1.6-py3-none-any.whl61SOURCE /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.whl62SOURCE /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.whl63SOURCE /dist/static/python-data/tabulate-0.10.0-py3-none-any.whl f0b0622e567335c8fabaaa659f1b33bcb6ddfe2e496071b743aa113f8774f2d3 /tmp/python-data/tabulate-0.10.0-py3-none-any.whl64SOURCE /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.whl65SOURCE /dist/static/python-data/cython-3.3.1-py3-none-any.whl 61abc7feedd20dac6c4ff7ab3a30e17136a067b242ab9253e2b4a6d9a72c2b61 /tmp/python-data/cython-3.3.1-py3-none-any.whl66SOURCE /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.whl67SOURCE /dist/static/python-data/pybind11-3.1.0-py3-none-any.whl b8488090f8acffbcb6b5d6a85571a6827a0a2981ffb75e5a0b27b87c4a6b7dd0 /tmp/python-data/pybind11-3.1.0-py3-none-any.whl68SOURCE /dist/static/python-data/setuptools-84.2.1-py3-none-any.whl ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2 /tmp/python-data/setuptools-84.2.1-py3-none-any.whl69SOURCE /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.whl70SOURCE /dist/static/python-data/cppy-1.3.1-py3-none-any.whl 7ca132b6ef6187384738804bd3a453d4eab7e3274df6dcd35e5d92aae3404717 /tmp/python-data/cppy-1.3.1-py3-none-any.whl71SOURCE /dist/static/python-data/versioneer-0.29-py3-none-any.whl 0f1a137bb5d6811e96a79bb0486798aeae9b9c6efc24b389659cebb0ee396cb9 /tmp/python-data/versioneer-0.29-py3-none-any.whl72# Qhull, which Matplotlib builds into its extensions, as Meson's package cache:73# its wrap builds it offline, unchanged.74SOURCE /dist/static/python-data/qhull-8.0.2.tar.gz 8774e9a12c70b0180b95d6b0b563c5aa4bea8d5960c15e18ae3b6d2521d64f8b /tmp/python-data/packagecache/qhull-8.0.2.tgz7576# The build tools, for this build alone: the site-packages FOLDER of the77# python package is not repeated, so nothing installed there now is kept.78SLOP pip install --no-index --no-deps --no-compile --find-links /tmp/python-data \79  meson-python cython pyproject-metadata packaging pybind11 setuptools setuptools-scm cppy versioneer8081# install NAME VERSION [PIP-OPTION…]: NAME==VERSION from the staged files, or82# from its source where a row unpacked it into /tmp/python-data/NAME-VERSION,83# into /opt/python-data/NAME, whatever / holds (--ignore-installed), then into /84# for the libraries built after it.85FILE /tmp/python-data/install86    name="$1" version="$2"87    shift 288    requirement="$name==$version"89    if test -d "/tmp/python-data/$name-$version"; then requirement="/tmp/python-data/$name-$version"; fi90    pip install --no-index --find-links /tmp/python-data --no-build-isolation --no-deps --no-compile \91      --no-cache-dir --ignore-installed --no-warn-script-location --root "/opt/python-data/$name" "$@" \92      "$requirement" || exit 193    cp -R "/opt/python-data/$name/." /9495SLOP slop /tmp/python-data/install numpy 2.5.496SLOP slop /tmp/python-data/install tzdata 2026.697SLOP slop /tmp/python-data/install python-dateutil 4.0.098SLOP slop /tmp/python-data/install pandas 3.0.599SLOP slop /tmp/python-data/install packaging 26.3100SLOP slop /tmp/python-data/install pyparsing 3.3.3101SLOP slop /tmp/python-data/install cycler 0.12.1102SLOP slop /tmp/python-data/install fonttools 4.68.0103SLOP slop /tmp/python-data/install kiwisolver 1.5.1104# contourpy's default werror=true fails on what Clang 24 reports in pybind11's105# headers (-Wunused-template). It writes the directories it is built in into106# contourpy.util.build_config(): built from its source unpacked here, in a build107# directory named here, where pip and meson-python name theirs at random.108SLOP gzip -dc /tmp/python-data/contourpy-1.4.0.tar.gz | tar -xf - -C /tmp/python-data109SLOP slop /tmp/python-data/install contourpy 1.4.0 --config-settings=setup-args=-Dwerror=false \110  --config-settings=build-dir=/tmp/python-data/contourpy-1.4.0/build111# Pillow's FreeType module links -lfreetype alone, and the freetype package's112# static library needs libpng, Brotli and zlib, which its freetype2.pc113# requires: the linker takes them from LDFLAGS.114SLOP LDFLAGS='-lpng16 -lbrotlidec -lbrotlicommon -lz' slop /tmp/python-data/install pillow 13.0.0115# Pillow links libjpeg-turbo, whose licence asks for its README.ijg beside the116# program, and FreeType's Brotli.117SLOP mkdir -p /opt/python-data/pillow/usr/share/licenses118SLOP cp -R /usr/share/licenses/libjpeg-turbo /usr/share/licenses/brotli /opt/python-data/pillow/usr/share/licenses/119# Matplotlib's own FreeType, 2.6.1, calls its autofitter through a function120# pointer of another signature (af_dummy_hints_apply takes two parameters, the121# call passes three), which Wasm traps: it links the freetype package's 2.14.3122# instead, statically (prefer_static), with the libpng and zlib that one reads.123SLOP MESON_PACKAGE_CACHE_DIR=/tmp/python-data/packagecache slop /tmp/python-data/install matplotlib 3.10.9 \124  --config-settings=setup-args=-Dsystem-freetype=true --config-settings=setup-args=-Dprefer_static=true125# Its extensions link FreeType with Brotli, libpng and Qhull, whose licences its wheel does not carry.126SLOP gzip -dc /tmp/python-data/packagecache/qhull-8.0.2.tgz | tar -xf - -C /tmp/python-data127SLOP mkdir -p /opt/python-data/matplotlib/usr/share/licenses/qhull /opt/python-data/matplotlib/usr/share/licenses/libpng128SLOP cp -R /usr/share/licenses/freetype /opt/python-data/matplotlib/usr/share/licenses/freetype129SLOP cp -R /usr/share/licenses/brotli /opt/python-data/matplotlib/usr/share/licenses/brotli130SLOP cp /usr/share/licenses/libpng/LICENSE /opt/python-data/matplotlib/usr/share/licenses/libpng/LICENSE131SLOP cp /tmp/python-data/qhull-8.0.2/COPYING.txt /opt/python-data/matplotlib/usr/share/licenses/qhull/COPYING.txt132SLOP slop /tmp/python-data/install seaborn 0.13.2133# What pandas reads and writes besides CSV: HTML through Jinja's templates, Excel134# with openpyxl, Markdown with tabulate.135SLOP slop /tmp/python-data/install markupsafe 3.0.3136SLOP slop /tmp/python-data/install jinja2 3.1.6137SLOP slop /tmp/python-data/install et-xmlfile 2.0.0138SLOP slop /tmp/python-data/install openpyxl 3.1.5139SLOP slop /tmp/python-data/install tabulate 0.10.0140SLOP 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")'141142FOLDER /opt/python-data143144ENTRY /bin/foreground -i /bin/slop145