Fixes arm64 build - #10
Open
MJohnson459 wants to merge 2 commits into
Open
MJohnson459 wants to merge 2 commits into
MJohnson459 wants to merge 2 commits into
Conversation
scipy 1.14.1 publishes a musllinux wheel for x86_64 only. On arm64 pip fell back to a source build, which stopped at "Unknown compiler(s): [['gfortran'], ...]" and failed the image build. Releases from 1.15.2 ship a musllinux aarch64 wheel; 1.18.1 is the current one and accepts the pinned numpy. The measure plugin's volume calculation is the only caller; its results are unchanged for every base method.
The image is published for amd64 and arm64, but pull requests only built it on amd64, in the test job. An arm64 build failure could not be seen until after a merge to main. A second job now builds the published image, without the test build argument, on both platforms. The test job stays on amd64: the stack's database image, postgis/postgis, has no arm64 build.
smathermather
approved these changes
Oct 2, 2026
This branch has not been deployed
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.
The arm64 build failed on main due to scipy 1.14 missing arm musl builds (we need musl due to alpine). 1.15.3 is the first version to include them. 1.18.1 is the latest. We can use either, I went with 1.18.1 as it didn't conflict and was newer.
In order to avoid missing arm64 failures again, I added a second build in the test-docker workflow that builds both amd64 and arm64. Note that we cannot run the tests on arm64 as the postgis image hasn't been built for that platform yet (open ticket).