electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 77f75f102b14cebe315df63c2343e48999d6692e
parent a4e342ac588ba334c0e1fbb3e7065c2edb411d4b
Author: SomberNight <somber.night@protonmail.com>
Date:   Sat, 14 Nov 2020 03:47:47 +0100

mac build: bundle old PyQt5 so that .app runs on macOS 11 "Big Sur"

This is the time of the year Apple breaks our mac builds, as usual.
mac now has its own "binaries" requirements. This allows us to use
an older version of PyQt5 in the mac binaries. For some reason
if we bundle newer PyQt5, the built app will not start on macOS 11
(but will on older macOS).

related: #6461
in particular, see https://github.com/spesmilo/electrum/issues/6461#issuecomment-713888921

Diffstat:
Mcontrib/freeze_packages.sh | 2+-
Mcontrib/osx/make_osx | 2+-
Acontrib/requirements/requirements-binaries-mac.txt | 2++
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/contrib/freeze_packages.sh b/contrib/freeze_packages.sh @@ -20,7 +20,7 @@ which virtualenv > /dev/null 2>&1 || { echo "Please install virtualenv" && exit ${SYSTEM_PYTHON} -m hashin -h > /dev/null 2>&1 || { ${SYSTEM_PYTHON} -m pip install hashin; } -for i in '' '-hw' '-binaries' '-build-wine' '-build-mac' '-build-sdist' '-build-appimage'; do +for i in '' '-hw' '-binaries' '-binaries-mac' '-build-wine' '-build-mac' '-build-sdist' '-build-appimage'; do rm -rf "$venv_dir" virtualenv -p ${SYSTEM_PYTHON} $venv_dir diff --git a/contrib/osx/make_osx b/contrib/osx/make_osx @@ -136,7 +136,7 @@ python3 -m pip install --no-dependencies -Ir ./contrib/deterministic-build/requi || fail "Could not install hardware wallet requirements" info "Installing dependencies specific to binaries..." -python3 -m pip install --no-dependencies -Ir ./contrib/deterministic-build/requirements-binaries.txt --user \ +python3 -m pip install --no-dependencies -Ir ./contrib/deterministic-build/requirements-binaries-mac.txt --user \ || fail "Could not install dependencies specific to binaries" info "Building $PACKAGE..." diff --git a/contrib/requirements/requirements-binaries-mac.txt b/contrib/requirements/requirements-binaries-mac.txt @@ -0,0 +1,2 @@ +PyQt5<5.13.2 +cryptography>=2.1