Skip to content

Commit e9ee872

Browse files
authored
Merge pull request #197 from thewtex/manylinux2014-remote-wheels
ENH: Support custom dockcross remote module tarball name
2 parents 4bbee73 + 0ea5af0 commit e9ee872

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,27 @@ if [[ ! -f ./zstd-1.2.0-linux/bin/unzstd ]]; then
4646
exit 255
4747
fi
4848

49-
if [[ ! -f ITKPythonBuilds-linux.tar.zst ]]; then
50-
curl -L https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.2.0.post1}/ITKPythonBuilds-linux.tar.zst -O
49+
TARBALL_NAME="ITKPythonBuilds-linux${TARBALL_SPECIALIZATION}.tar"
50+
51+
if [[ ! -f ${TARBALL_NAME}.zst ]]; then
52+
curl -L https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.2.0.post1}/${TARBALL_NAME}.zst -O
5153
fi
52-
if [[ ! -f ./ITKPythonBuilds-linux.tar.zst ]]; then
53-
echo "ERROR: can not find required binary './ITKPythonBuilds-linux.tar.zst'"
54+
if [[ ! -f ./${TARBALL_NAME}.zst ]]; then
55+
echo "ERROR: can not find required binary './${TARBALL_NAME}.zst'"
5456
exit 255
5557
fi
56-
./zstd-1.2.0-linux/bin/unzstd ./ITKPythonBuilds-linux.tar.zst -o ITKPythonBuilds-linux.tar
58+
./zstd-1.2.0-linux/bin/unzstd ./${TARBALL_NAME}.zst -o ${TARBALL_NAME}
5759
if [ "$#" -lt 1 ]; then
5860
echo "Extracting all files";
59-
tar xf ITKPythonBuilds-linux.tar
61+
tar xf ${TARBALL_NAME}
6062
else
6163
echo "Extracting files relevant for: $1";
62-
tar xf ITKPythonBuilds-linux.tar ITKPythonPackage/scripts/
63-
tar xf ITKPythonBuilds-linux.tar ITKPythonPackage/ITK-source/
64-
tar xf ITKPythonBuilds-linux.tar ITKPythonPackage/oneTBB-prefix/
65-
tar xf ITKPythonBuilds-linux.tar --wildcards ITKPythonPackage/ITK-$1*
64+
tar xf ${TARBALL_NAME} ITKPythonPackage/scripts/
65+
tar xf ${TARBALL_NAME} ITKPythonPackage/ITK-source/
66+
tar xf ${TARBALL_NAME} ITKPythonPackage/oneTBB-prefix/
67+
tar xf ${TARBALL_NAME} --wildcards ITKPythonPackage/ITK-$1*
6668
fi
67-
rm ITKPythonBuilds-linux.tar
69+
rm ${TARBALL_NAME}
6870
if [[ ! -f ./ITKPythonPackage/scripts/dockcross-manylinux-build-module-wheels.sh ]]; then
6971
echo "ERROR: can not find required binary './ITKPythonPackage/scripts/dockcross-manylinux-build-module-wheels.sh'"
7072
exit 255

0 commit comments

Comments
 (0)