|
48 | 48 | tarball_arch="" |
49 | 49 | fi |
50 | 50 | # Fetch ITKPythonBuilds archive containing ITK build artifacts |
| 51 | +rm -fr ITKPythonPackage |
51 | 52 | echo "Fetching https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.4.0}/ITKPythonBuilds-macosx${tarball_arch}.tar.zst" |
52 | 53 | if [[ ! -f ITKPythonBuilds-macosx${tarball_arch}.tar.zst ]]; then |
53 | 54 | aria2c -c --file-allocation=none -o ITKPythonBuilds-macosx${tarball_arch}.tar.zst -s 10 -x 10 https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${ITK_PACKAGE_VERSION:=v5.4.0}/ITKPythonBuilds-macosx${tarball_arch}.tar.zst |
54 | 55 | fi |
55 | 56 | unzstd --long=31 ITKPythonBuilds-macosx${tarball_arch}.tar.zst -o ITKPythonBuilds-macosx${tarball_arch}.tar |
56 | 57 | PATH="$(dirname $(brew list gnu-tar | grep gnubin)):$PATH" |
57 | | -gtar xf ITKPythonBuilds-macosx${tarball_arch}.tar --checkpoint=10000 --checkpoint-action=dot |
| 58 | +gtar xf ITKPythonBuilds-macosx${tarball_arch}.tar --checkpoint=10000 --checkpoint-action=dot \ |
| 59 | + ITKPythonPackage/ITK-source \ |
| 60 | + ITKPythonPackageRequiredExtractionDir.txt \ |
| 61 | + ITKPythonPackage/scripts |
| 62 | + |
| 63 | +# Extract subdirectories specific to the compiled python versions |
| 64 | +args=( "$@" ) |
| 65 | +source ITKPythonPackage/scripts/macpython-build-common.sh |
| 66 | +for version in "$PYTHON_VERSIONS"; do |
| 67 | + gtar xf ITKPythonBuilds-macosx${tarball_arch}.tar --checkpoint=10000 --checkpoint-action=dot \ |
| 68 | + --wildcards "ITKPythonPackage/ITK-${version}-macosx*" \ |
| 69 | + "ITKPythonPackage/venvs/${version}" |
| 70 | +done |
| 71 | + |
58 | 72 | rm ITKPythonBuilds-macosx${tarball_arch}.tar |
59 | 73 |
|
60 | 74 | # Optional: Update build scripts |
@@ -82,4 +96,4 @@ if [[ ! ${ITK_USE_LOCAL_PYTHON} ]]; then |
82 | 96 | fi |
83 | 97 |
|
84 | 98 | echo "Building module wheels" |
85 | | -/Users/svc-dashboard/D/P/ITKPythonPackage/scripts/macpython-build-module-wheels.sh "$@" |
| 99 | +/Users/svc-dashboard/D/P/ITKPythonPackage/scripts/macpython-build-module-wheels.sh "${args[@]}" |
0 commit comments