mac build: bump python version (3.9.13->3.10.11)
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Parameterize
|
# Parameterize
|
||||||
PYTHON_VERSION=3.9.13
|
PYTHON_VERSION=3.10.11
|
||||||
PY_VER_MAJOR="3.9" # as it appears in fs paths
|
PY_VER_MAJOR="3.10" # as it appears in fs paths
|
||||||
PACKAGE=Electrum
|
PACKAGE=Electrum
|
||||||
GIT_REPO=https://github.com/spesmilo/electrum
|
GIT_REPO=https://github.com/spesmilo/electrum
|
||||||
|
|
||||||
@@ -71,11 +71,11 @@ function DoCodeSignMaybe { # ARGS: infoName fileOrDirName
|
|||||||
}
|
}
|
||||||
|
|
||||||
info "Installing Python $PYTHON_VERSION"
|
info "Installing Python $PYTHON_VERSION"
|
||||||
PKG_FILE="python-${PYTHON_VERSION}-macosx10.9.pkg"
|
PKG_FILE="python-${PYTHON_VERSION}-macos11.pkg"
|
||||||
if [ ! -f "$CACHEDIR/$PKG_FILE" ]; then
|
if [ ! -f "$CACHEDIR/$PKG_FILE" ]; then
|
||||||
curl -o "$CACHEDIR/$PKG_FILE" "https://www.python.org/ftp/python/${PYTHON_VERSION}/$PKG_FILE"
|
curl -o "$CACHEDIR/$PKG_FILE" "https://www.python.org/ftp/python/${PYTHON_VERSION}/$PKG_FILE"
|
||||||
fi
|
fi
|
||||||
echo "167c4e2d9f172a617ba6f3b08783cf376dec429386378066eb2f865c98030dd7 $CACHEDIR/$PKG_FILE" | shasum -a 256 -c \
|
echo "767ed35ad688d28ea4494081ae96408a0318d0d5bb9ca0139d74d6247b231cfc $CACHEDIR/$PKG_FILE" | shasum -a 256 -c \
|
||||||
|| fail "python pkg checksum mismatched"
|
|| fail "python pkg checksum mismatched"
|
||||||
sudo installer -pkg "$CACHEDIR/$PKG_FILE" -target / \
|
sudo installer -pkg "$CACHEDIR/$PKG_FILE" -target / \
|
||||||
|| fail "failed to install python"
|
|| fail "failed to install python"
|
||||||
|
|||||||
Reference in New Issue
Block a user