Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit eb0b407

Browse files
authored
Merge pull request #208 from radarhere/untar
Updated multibuild
2 parents 8e12a09 + b424d2f commit eb0b407

File tree

2 files changed

+8
-21
lines changed

2 files changed

+8
-21
lines changed

config.sh

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,13 @@ LIBWEBP_VERSION=1.2.0
1818
BZIP2_VERSION=1.0.8
1919
LIBXCB_VERSION=1.14
2020

21-
# workaround for multibuild bug with .tar.xz
22-
function untar {
23-
local in_fname=$1
24-
if [ -z "$in_fname" ];then echo "in_fname not defined"; exit 1; fi
25-
local extension=${in_fname##*.}
26-
case $extension in
27-
tar) tar -xf $in_fname ;;
28-
gz|tgz) tar -zxf $in_fname ;;
29-
bz2) tar -jxf $in_fname ;;
30-
zip) unzip -qq $in_fname ;;
31-
xz) if [ -n "$IS_MACOS" ]; then
32-
tar -xf $in_fname
33-
else
34-
if [[ ! $(type -P "unxz") ]]; then
35-
echo xz must be installed to uncompress file; exit 1
36-
fi
37-
unxz -c $in_fname | tar -xf -
38-
fi ;;
39-
*) echo Did not recognize extension $extension; exit 1 ;;
40-
esac
21+
function pyinst_fname_for_version {
22+
local inst_ext=$(pyinst_ext_for_version $1)
23+
if [ "${PLAT:-}" == "arm64" ]; then
24+
echo "python-$1-macos11.${inst_ext}"
25+
else
26+
echo "python-$1-macosx$2.${inst_ext}"
27+
fi
4128
}
4229

4330
function pre_build {

0 commit comments

Comments
 (0)