Skip to content

Commit 9ebaa64

Browse files
committed
ENH: Make manylinux tarball script work on other systems
1 parent 89d52d2 commit 9ebaa64

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/dockcross-manylinux-build-tarball.sh

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

7-
cd /home/kitware/Packaging
7+
if test -d /home/kitware/Packaging; then
8+
cd /home/kitware/Packaging
9+
fi
10+
zstd_exe=zstd
11+
if test -e /home/kitware/Support/zstd-build/programs/zstd; then
12+
zstd_exe=/home/kitware/Support/zstd-build/programs/zstd
13+
fi
814
tar -c --to-stdout \
915
ITKPythonPackage/ITK-* \
1016
ITKPythonPackage/scripts > ITKPythonBuilds-linux.tar
11-
/home/kitware/Support/zstd-build/programs/zstd -f \
17+
$zstd_exe -f \
1218
./ITKPythonBuilds-linux.tar \
1319
-o ./ITKPythonBuilds-linux.tar.zst

0 commit comments

Comments
 (0)