Skip to content

chore(reasoner): install py-horned-owl from PyPI wheels in the arm64 image - #470

Merged
micheldumontier merged 1 commit into
mainfrom
chore/arm64-horned-owl-wheel
Nov 23, 2026
Merged

micheldumontier merged 1 commit into
mainfrom
chore/arm64-horned-owl-wheel

Conversation

@micheldumontier

Copy link
Copy Markdown
Contributor

Summary

Dockerfile.arm64 compiled py-horned-owl from source in a builder stage that installed rustup and maturin, because PyPI had no aarch64 wheels. Since 2.0.0, PyPI publishes manylinux aarch64 wheels, so this installs py-horned-owl with pip, as the amd64 image does, and removes the builder stage. That's one fewer Rust toolchain in the arm64 build.

test_dockerfiles.py: the rustdl pin check now also covers py-horned-owl, and requires the same pin in both Dockerfiles and the CI test requirements. After #465, the test requirements were still on 1.4 until the follow-up commit caught it.

Verification

  • Wheels: pip download --only-binary=:all: --platform manylinux_2_17_aarch64 --python-version 3.12 resolves the three compiled packages:

    • py_horned_owl-2.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
    • pyoxigraph-0.5.13-cp312-cp312-manylinux_2_28_aarch64.whl
    • rustdl-0.4.38-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

    The base image is Debian bookworm (glibc 2.36), which covers both manylinux levels.

  • Lint: docker build --check -f Dockerfile.arm64 reports no warnings.

  • Pin test: fails when requirements-test.txt is changed back to 1.4 and passes as committed.

  • Not built: I didn't build the arm64 image itself. The machine I used can't build arm64 (no QEMU), and CI doesn't build the reasoner images. Please build it once on an Apple Silicon machine before relying on it: docker build -f docker/reasoner-service/Dockerfile.arm64 docker/reasoner-service.

🤖 Generated with Claude Code

…image

Dockerfile.arm64 compiled py-horned-owl from source in a builder stage
(rustup + maturin) because PyPI had no aarch64 wheels. 2.0.0 publishes
manylinux aarch64 wheels (cp312 included), so install it with pip like
the amd64 image and drop the builder stage. pip resolves
py_horned_owl-2.0.0-cp312-cp312-manylinux_2_17_aarch64, alongside the
aarch64 pyoxigraph and rustdl wheels already in use.

test_dockerfiles: the rustdl pin check becomes a parametrized check that
also covers py-horned-owl across both Dockerfiles and the CI test
requirements (the test requirements lagged at 1.4 after #465).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@micheldumontier
micheldumontier merged commit 3bb72c7 into main Nov 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant