Browse Source
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.
hard-fail-on-bad-server-string
SomberNight
5 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
4 changed files with
12 additions and
12 deletions
contrib/build-linux/appimage/build.sh
contrib/build-wine/build-electrum-git.sh
contrib/build-wine/prepare-wine.sh
contrib/osx/make_osx
@ -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"
@ -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
@ -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 "
@ -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"
@ -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