Python 3.15.2 build recipe

The recipe ReadyStack built readystack/python:3.15.2-CE-ubuntu24.04-r1 from: the upstream source it starts from, every pinned input, and the files that run the build with the network off. Public here: the source and commit, the pinned inputs, all 24 recipe files with their sizes and SHA-256, 9 of them public in full or in part, and the opening lines of the Dockerfile and build script.

The whole recipe

Free account

ReadyStack does not charge for recipes; we only ask you to sign up. An account is an email address, a username and a password. It opens all 24 recipe files, and the build kit downloads free with it too.

Upstream source

Public

github.com/python/cpython (v3.15.2) at 5e58eaad7c58df58dfa8ea549c87996e01dd1077

Fetched once, with the network on, by the vendor step (Dockerfile.vendor) when the kit was made; the offline build uses the kit's vendored copies:

Pinned inputs

As JSON
  • Base imageubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852
  • BuildKitmoby/buildkit:v0.31.2
    sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0
  • Build methodsource-rebuild-python
  • SOURCE_DATE_EPOCH1792947471 (2026-10-25T16:57:51Z)
  • Target digest (linux/amd64)sha256:3b42ecdb93bf14ea67bab56d22979b410ce375f084f539277f43d69e4af38274
  • Target config digestsha256:2b5c2117fc9e55d9f9d9e08d2befa77b0b7b77543c9ab494c63c5773480c870f
  • Checksummed kit files11,260 (CHECKSUMS.sha256)

Dockerfile Dockerfile.offline.pinned

91 lines · 9.9 KB
# GENERATED hermetic Python runtime build (--network=none). CPython 3.15.2 is COMPILED here, offline,
# from python.org's tarball (sha256 re-checked) and the vendored build debs, by the same command the vendor
# stage ran, linked against Ubuntu's libraries; the runtime takes /usr/local from it and none of the toolchain.
FROM ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS cpython
ARG SOURCE_DATE_EPOCH=1792947471
ENV SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}
COPY vendored/python/debs/ /tmp/cpython-debs/
COPY vendored/python/Python-3.15.2.tar.xz /tmp/Python-3.15.2.tar.xz
RUN set --; for f in /tmp/cpython-debs/*.deb; do [ -e "$f" ] && set -- "$@" "$f"; done; \
    for pass in 1 2 3 4 5; do [ $# -eq 0 ] || dpkg -i --skip-same-version "$@" >/dev/null 2>&1 && break; done; \
    dpkg --configure -a && bad= && for d in "$@"; do p=$(dpkg-deb -f "$d" Package) v=$(dpkg-deb -f "$d" Version); \
      case "$(dpkg-query -W -f='${Version} ${db:Status-Abbrev}' "$p" 2>/dev/null)" in "$v ii"*) ;; *) bad="$bad $p=$v" ;; esac; done && \
    { [ -z "$bad" ] || { echo "vendored debs not installed at their vendored version:$bad" >&2; false; }; } && \
    : "${SOURCE_DATE_EPOCH:?the CPython build needs SOURCE_DATE_EPOCH}" && \
    echo "8b5536d280142ecf6cdfe15d12a21ba1c65e300bbf7b28a8d0cdb849575797de  /tmp/Python-3.15.2.tar.xz" | sha256sum -c - && \
    mkdir -p /usr/src/python && tar -xJf /tmp/Python-3.15.2.tar.xz -C /usr/src/python --strip-components=1 --no-same-owner && \
    rm -rf /tmp/cpython-debs /tmp/Python-3.15.2.tar.xz && cd /usr/src/python && \
    export DEB_BUILD_MAINT_OPTIONS=optimize=-lto && \
    PYCF="$(dpkg-buildflags --get CFLAGS) $(dpkg-buildflags --get CPPFLAGS)" && PYLD="$(dpkg-buildflags --get LDFLAGS)" && \
    ./configure --build=x86_64-linux-gnu --prefix=/usr/local --enable-shared --enable-loadable-sqlite-extensions --enable-option-checking=fatal --disable-test-modules --without-static-libpython --with-ensurepip=install --with-system-expat --without-system-libmpdec --with-dbmliborder= py_cv_module__dbm=n/a py_cv_module__gdbm=n/a py_cv_module__tkinter=n/a && \
    make -j"$(nproc)" "EXTRA_CFLAGS=$PYCF" "LDFLAGS=$PYLD,--strip-all" && \
    rm python && make -j"$(nproc)" "EXTRA_CFLAGS=$PYCF" "LDFLAGS=$PYLD,--strip-all,-rpath='\$\$ORIGIN/../lib'" python && \
    make install COMPILEALL_OPTS=--invalidation-mode=checked-hash && \
    cd / && rm -rf /usr/src/python /usr/local/lib/python3.15/idlelib /usr/local/lib/python3.15/tkinter /usr/local/lib/python3.15/turtledemo /usr/local/bin/idle3* && \

Continues: 67 more lines. Create a free account to read the rest, or sign in.

Build script BUILD_OFFLINE.sh

125 lines · 6.6 KB
#!/usr/bin/env bash
# =============================================================================
# ReadyStack — offline reproducible rebuild.
#
# Rebuilds this product's image from THIS ARCHIVE ALONE, with no network access
# of any kind, and prints the resulting linux/amd64 image-manifest digest.
# Run ./VERIFY_OFFLINE.sh afterwards to assert it equals the published digest.
#
# Requirements: linux/amd64 Docker host, docker buildx >= 0.30, jq, tar.
# No git, no registry access, no additional tooling.
#
#   ./BUILD_OFFLINE.sh                the rebuild (OCI image + a docker-loadable copy)
#   ./BUILD_OFFLINE.sh --provenance   the same rebuild with SLSA v1 build provenance (mode=max) attached to the OCI
#                                     image, generated by BuildKit, not by any build step. Your build platform runs
#                                     the build and signs that provenance with a key the build steps cannot reach
#                                     (see REBUILD.md). Any SLSA build level is your platform's; this archive claims
#                                     none. The image digest is the same either way.
# =============================================================================
set -euo pipefail
PROVENANCE=0
for arg in "$@"; do
  case "$arg" in
    --provenance) PROVENANCE=1 ;;
    -h|--help) sed -n '2,20p' "$0"; exit 0 ;;

Continues: 101 more lines. Create a free account to read the rest, or sign in.

Recipe files

24 files · SHA-256 of each as published here
FileSizeSHA-256Access
BASES.tsv121 B63822800fc2b…Public · View
BUILD_OFFLINE.sh6.6 KB6633aa31b6b4…Opening lines public
CHECKSUMS.sha2561.4 MB730d552bd5b0…Free account
DOCKERFILE_NAME.txt26 B9aadd1ede68e…Public · View
Dockerfile9.9 KBdafc4630ae3b…Free account
Dockerfile.offline9.9 KBdafc4630ae3b…Free account
Dockerfile.offline.pinned9.9 KBdafc4630ae3b…Opening lines public
Dockerfile.vendor6.5 KBdb4c43d2d9a6…Free account
MANIFEST.txt643 KBbad81f9bbf2a…Free account
SOURCE_DATE_EPOCH.txt11 B9cb0f54a6939…Public · View
TARGET_DIGEST.txt499 Bc4433269a8a7…Public · View
VERIFY_OFFLINE.sh9.9 KB3e8184ea230c…Free account
docs/PROVENANCE.md2.6 KBbfdd55b7d3ae…Free account
docs/REBUILD.md5.0 KBcbcec69ebc82…Free account
docs/VERIFY.md1.9 KBf3ab30b2c3da…Free account
docs/provenance/BASE_IMAGE_DIGESTS.lock49 B167b03637e3f…Public · View
docs/provenance/BUILD_RECIPE.json1.6 KBee1203024ac0…Free account
docs/provenance/CUSTODY_INPUTS.json646 B77a65dbfb11f…Free account
docs/provenance/SOURCE_FILE_MANIFEST.json196 KBeb1b5ca09759…Free account
docs/provenance/SOURCE_TREE_HASH.json304 B4a714b9067db…Public · View
docs/provenance/SYSTEM_PINNING.lock1 B01ba4719c80b…Free account
docs/provenance/TOOLCHAIN.lock1.9 KB6c84619c5082…Free account
rebuild.json1.2 KB6449c723cbd0…Free account
toolchain/BUILDKIT_TAG.txt22 Bfcd530eeb02b…Public · View

Something wrong in this recipe? Report a recipe error on the public issue tracker.

Made from ReadyStack-python-3.15.2-CE-ubuntu24.04-r1.tar.gz (SHA-256 caa9ea252c9a98bce824b920ce40d8a15f489802f2d7e083dd648742edc06179), the build kit published for this release, on 2026-11-08.

What the Hermetic Build Kit adds

Free with an account

The recipe pins every input; the kit carries them, so the build runs with the network off:

  • Vendored sources and packages5,543 files, 240 MB
  • Handbooks, SBOM, security report and records5,689 files, 128 MB
  • Pinned BuildKit toolchain1 files, 106 MB
  • Base images (OCI layouts)5 files, 28 MB