Repository navigation
chore(reasoner): install py-horned-owl from PyPI wheels in the arm64 image - #470
Merged
Merged
Conversation
…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>
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dockerfile.arm64compiled 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.12resolves the three compiled packages:py_horned_owl-2.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whlpyoxigraph-0.5.13-cp312-cp312-manylinux_2_28_aarch64.whlrustdl-0.4.38-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whlThe base image is Debian bookworm (glibc 2.36), which covers both manylinux levels.
Lint:
docker build --check -f Dockerfile.arm64reports no warnings.Pin test: fails when
requirements-test.txtis 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