Skip to content

Commit 58257f3

Browse files
committed
ENH: macpython-build-tarball.sh arm64 support
1 parent fbc4de3 commit 58257f3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/macpython-build-tarball.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44
# downloaded by the external module build scripts and used to build their
55
# Python package on GitHub CI services.
66

7+
arch_postfix=""
8+
if test $(arch) == "arm64"; then
9+
arch_postfix="-arm64"
10+
fi
11+
712
pushd /Users/svc-dashboard/D/P > /dev/null
8-
tar -cf ITKPythonBuilds-macosx.tar \
13+
tar -cf ITKPythonBuilds-macosx${arch_postfix}.tar \
914
ITKPythonPackage/ITK-* \
1015
ITKPythonPackage/venvs \
1116
ITKPythonPackageRequiredExtractionDir.txt \
1217
ITKPythonPackage/scripts
13-
/usr/local/bin/zstd -f \
18+
zstd -f \
1419
-15 \
15-
./ITKPythonBuilds-macosx.tar \
16-
-o ./ITKPythonBuilds-macosx.tar.zst
20+
./ITKPythonBuilds-macosx${arch_postfix}.tar \
21+
-o ./ITKPythonBuilds-macosx${arch_postfix}.tar.zst
1722
popd > /dev/null

0 commit comments

Comments
 (0)