From 87904e2c7e370ec8b25f14b79b6b296b6294e3b0 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 6 Aug 2022 06:43:31 +0200 Subject: [PATCH] win build: force using source dist for some of our python dependencies Instead of using pre-built binary wheels from PyPI. We should tighten this more (re other requirements-*.txt files), but there is no C compiler available inside the wine environment atm... --- contrib/build-wine/build-electrum-git.sh | 16 ++++++++++++---- contrib/build-wine/prepare-wine.sh | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/contrib/build-wine/build-electrum-git.sh b/contrib/build-wine/build-electrum-git.sh index 86aa6a910..b4e64115a 100755 --- a/contrib/build-wine/build-electrum-git.sh +++ b/contrib/build-wine/build-electrum-git.sh @@ -35,13 +35,21 @@ find -exec touch -h -d '2000-11-11T11:11:11+00:00' {} + popd -# Install frozen dependencies -$WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-warn-script-location \ +# opt out of compiling C extensions +export AIOHTTP_NO_EXTENSIONS=1 +export YARL_NO_EXTENSIONS=1 +export MULTIDICT_NO_EXTENSIONS=1 +export FROZENLIST_NO_EXTENSIONS=1 + +info "Installing requirements..." +$WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-binary :all: --no-warn-script-location \ --cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements.txt - +info "Installing dependencies specific to binaries..." +# TODO use "--no-binary :all:" (but we don't have a C compiler...) $WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-warn-script-location \ --cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements-binaries.txt - +info "Installing hardware wallet requirements..." +# TODO use "--no-binary :all:" (but we don't have a C compiler...) $WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-warn-script-location \ --cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements-hw.txt diff --git a/contrib/build-wine/prepare-wine.sh b/contrib/build-wine/prepare-wine.sh index 4c2c72931..25afeba73 100755 --- a/contrib/build-wine/prepare-wine.sh +++ b/contrib/build-wine/prepare-wine.sh @@ -53,7 +53,7 @@ break_legacy_easy_install info "Installing build dependencies." $WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-warn-script-location \ --cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements-build-base.txt -$WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-warn-script-location \ +$WINE_PYTHON -m pip install --no-build-isolation --no-dependencies --no-binary :all: --no-warn-script-location \ --cache-dir "$WINE_PIP_CACHE_DIR" -r "$CONTRIB"/deterministic-build/requirements-build-wine.txt info "Installing NSIS."