Skip to content

Commit f7dd15d

Browse files
committed
ENH: Allow building with docker or podman
1 parent 3ab599a commit f7dd15d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

manylinux-build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
set -e -x -o pipefail
44

5+
OCI_EXE=${OCI_EXE:=podman}
56

67
dockcross_version=20250109-7bf589c
78

8-
podman pull docker.io/dockcross/manylinux_2_28-x64:$dockcross_version
9-
podman run --rm docker.io/dockcross/manylinux_2_28-x64:$dockcross_version > ./dockcross-x64
9+
${OCI_EXE} pull docker.io/dockcross/manylinux_2_28-x64:$dockcross_version
10+
${OCI_EXE} run --rm docker.io/dockcross/manylinux_2_28-x64:$dockcross_version > ./dockcross-x64
1011
chmod +x ./dockcross-x64
1112

1213
./dockcross-x64 cmake -Bbuild -S. -GNinja
@@ -32,5 +33,5 @@ once before running the following commands on an amd64 system.
3233
3334
EOF
3435

35-
podman pull quay.io/pypa/manylinux_2_28_aarch64:$manylinux_version
36-
podman run -it --rm -v $(pwd):/work quay.io/pypa/manylinux_2_28_aarch64:$manylinux_version /work/manylinux-internal.sh
36+
${OCI_EXE} pull quay.io/pypa/manylinux_2_28_aarch64:$manylinux_version
37+
${OCI_EXE} run -it --rm -v $(pwd):/work quay.io/pypa/manylinux_2_28_aarch64:$manylinux_version /work/manylinux-internal.sh

0 commit comments

Comments
 (0)