tbinaries: use "--no-dependencies" option for pip install - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7c090f92ce206891999420a9c7b119491b9ce783 DIR parent 0b0139c676d158039e7ff2b24d674eb422b06a27 HTML Author: SomberNight <somber.night@protonmail.com> Date: Fri, 10 Jan 2020 19:01:32 +0100 binaries: use "--no-dependencies" option for pip install All (incl indirect) dependencies are already listed in deterministic-build/requirements*.txt. This option makes it easier to manually rm a dependency from that list for e.g. testing. Diffstat: M contrib/build-linux/appimage/build… | 8 ++++---- M contrib/build-wine/build-electrum-… | 4 ++-- M contrib/build-wine/prepare-wine.sh | 4 ++-- M contrib/osx/make_osx | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) --- DIR diff --git a/contrib/build-linux/appimage/build.sh b/contrib/build-linux/appimage/build.sh t@@ -134,10 +134,10 @@ info "preparing electrum-locale." info "installing electrum and its dependencies." mkdir -p "$CACHEDIR/pip_cache" -"$python" -m pip install --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" -r "$CONTRIB/deterministic-build/requirements.txt" -"$python" -m pip install --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" -r "$CONTRIB/deterministic-build/requirements-binaries.txt" -"$python" -m pip install --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" -r "$CONTRIB/deterministic-build/requirements-hw.txt" -"$python" -m pip install --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" "$PROJECT_ROOT" +"$python" -m pip install --no-dependencies --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" -r "$CONTRIB/deterministic-build/requirements.txt" +"$python" -m pip install --no-dependencies --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" -r "$CONTRIB/deterministic-build/requirements-binaries.txt" +"$python" -m pip install --no-dependencies --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" -r "$CONTRIB/deterministic-build/requirements-hw.txt" +"$python" -m pip install --no-dependencies --no-warn-script-location --cache-dir "$CACHEDIR/pip_cache" "$PROJECT_ROOT" info "copying zbar" DIR diff --git a/contrib/build-wine/build-electrum-git.sh b/contrib/build-wine/build-electrum-git.sh t@@ -43,9 +43,9 @@ popd # Install frozen dependencies -$PYTHON -m pip install --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements.txt +$PYTHON -m pip install --no-dependencies --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements.txt -$PYTHON -m pip install --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-hw.txt +$PYTHON -m pip install --no-dependencies --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-hw.txt pushd $WINEPREFIX/drive_c/electrum # see https://github.com/pypa/pip/issues/2195 -- pip makes a copy of the entire directory DIR diff --git a/contrib/build-wine/prepare-wine.sh b/contrib/build-wine/prepare-wine.sh t@@ -58,10 +58,10 @@ for msifile in core dev exe lib pip tools; do done info "Installing build dependencies." -$PYTHON -m pip install --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-wine-build.txt +$PYTHON -m pip install --no-dependencies --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-wine-build.txt info "Installing dependencies specific to binaries." -$PYTHON -m pip install --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-binaries.txt +$PYTHON -m pip install --no-dependencies --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-binaries.txt info "Installing ZBar." download_if_not_exist "$CACHEDIR/$ZBAR_FILENAME" "$ZBAR_URL" DIR diff --git a/contrib/osx/make_osx b/contrib/osx/make_osx t@@ -54,7 +54,7 @@ fail "Unable to use Python $PYTHON_VERSION" info "install dependencies specific to binaries" # note that this also installs pinned versions of both pip and setuptools -python3 -m pip install -Ir ./contrib/deterministic-build/requirements-binaries.txt --user \ +python3 -m pip install --no-dependencies -Ir ./contrib/deterministic-build/requirements-binaries.txt --user \ || fail "Could not install pyinstaller" t@@ -119,15 +119,15 @@ DoCodeSignMaybe "CalinsQRReader.app" "${d}/build/Release/CalinsQRReader.app" "$A info "Installing requirements..." -python3 -m pip install -Ir ./contrib/deterministic-build/requirements.txt --user || \ +python3 -m pip install --no-dependencies -Ir ./contrib/deterministic-build/requirements.txt --user || \ fail "Could not install requirements" info "Installing hardware wallet requirements..." -python3 -m pip install -Ir ./contrib/deterministic-build/requirements-hw.txt --user || \ +python3 -m pip install --no-dependencies -Ir ./contrib/deterministic-build/requirements-hw.txt --user || \ fail "Could not install hardware wallet requirements" info "Building $PACKAGE..." -python3 -m pip install --user . > /dev/null || fail "Could not build $PACKAGE" +python3 -m pip install --no-dependencies --user . > /dev/null || fail "Could not build $PACKAGE" info "Faking timestamps..." for d in ~/Library/Python/ ~/.pyenv .; do