-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from OpenChemistry/build-arm
aarch64 build wheel
- Loading branch information
Showing
4 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
ARG BASE_IMAGE=quay.io/pypa/manylinux2014_x86_64 | ||
ARG BASE_IMAGE=quay.io/pypa/manylinux_2_28_x86_64 | ||
FROM ${BASE_IMAGE} | ||
|
||
RUN yum install -y \ | ||
git \ | ||
wget \ | ||
eigen3-devel \ | ||
hdf5-devel | ||
|
||
# Install the latest cmake | ||
RUN VERSION=3.19.4 && \ | ||
wget -q https://github.com/Kitware/CMake/releases/download/v$VERSION/cmake-$VERSION-Linux-x86_64.sh && \ | ||
bash cmake-$VERSION-Linux-x86_64.sh --skip-license --prefix=/usr/local && \ | ||
rm cmake-$VERSION-Linux-x86_64.sh | ||
RUN dnf install wget eigen3-devel hdf5-devel cmake -y |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
image_base=quay.io/pypa/manylinux2014_x86_64 | ||
tag=openchemistry/stempy_wheel_builder | ||
# arch=x86_64 | ||
arch=aarch64 | ||
|
||
docker build . -t $tag --build-arg BASE_IMAGE=$image_base | ||
if [ "$arch" = "x86_64" ]; then | ||
platform=linux/amd64 | ||
elif [ "$arch" = "aarch64" ]; then | ||
platform=linux/arm64 | ||
fi | ||
|
||
image_base=quay.io/pypa/manylinux_2_28_${arch} | ||
tag=openchemistry/stempy_wheel_builder_${arch} | ||
|
||
docker build . --platform=$platform -t $tag --build-arg BASE_IMAGE=$image_base --build-arg ARCH=$arch | ||
docker push $tag |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
numpy | ||
# Tests fail with numpy v2.0.4 py39 aarch64, pin here | ||
numpy<2.0; (python_version <= "3.9" and platform_machine == "aarch64") | ||
numpy; python_version > "3.9" or platform_machine != "aarch64" | ||
h5py | ||
deprecation |