Commit 5721be4b authored by Andrew Murray's avatar Andrew Murray
Browse files

Allow py_osx_ver to vary in length

parent 2e10577a
......@@ -511,7 +511,7 @@ function fuse_macos_intel_arm64 {
mkdir -p tmp_fused_wheelhouse
for whl in $wheelhouse/*.whl; do
if [[ "$whl" == *macosx_${py_osx_ver}_x86_64.whl ]]; then
whl_base=$(echo $whl | rev | cut -c 23- | rev)
whl_base=$(sed "s/macosx_${py_osx_ver}_x86_64.whl//" <<< $whl)
if [[ -f "${whl_base}macosx_11_0_arm64.whl" ]]; then
delocate-fuse $whl "${whl_base}macosx_11_0_arm64.whl" -w tmp_fused_wheelhouse
mv tmp_fused_wheelhouse/$(basename $whl) $wheelhouse/$(basename ${whl_base})macosx_${py_osx_ver}_universal2.whl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment