the one in apt refused to install certain package versions (that were pinned by hash!!) and installed different versions instead... e.g.: Collecting wheel==0.34.2 (from -r /opt/electrum/contrib/build-linux/sdist/../../../contrib/deterministic-build/requirements.txt (line 112)) Downloading521c6dc7fe/wheel-0.34.2.tar.gz(58kB) 100% |████████████████████████████████| 61kB 3.8MB/s Requested wheel==0.34.2 from521c6dc7fe/wheel-0.34.2.tar.gz (sha256)=8788e9155fe14f54164c1b9eb0a319d98ef02c160725587ad60f14ddc57b6f96 (from -r /opt/electrum/contrib/build-linux/sdist/../../../contrib/deterministic-build/requirements.txt (line 112)), but installing version 0.30.0
30 lines
792 B
Bash
Executable File
30 lines
792 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../../.."
|
|
CONTRIB="$PROJECT_ROOT/contrib"
|
|
CONTRIB_SDIST="$CONTRIB/build-linux/sdist"
|
|
DISTDIR="$PROJECT_ROOT/dist"
|
|
|
|
. "$CONTRIB"/build_tools_util.sh
|
|
|
|
python3 --version || fail "python interpreter not found"
|
|
|
|
# upgrade to modern pip so that it knows the flags we need.
|
|
# we will then install a pinned version of pip as part of requirements-sdist-build
|
|
python3 -m pip install --upgrade pip
|
|
|
|
info "Installing pinned requirements."
|
|
python3 -m pip install --no-dependencies --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-sdist-build.txt
|
|
|
|
|
|
"$CONTRIB"/make_packages || fail "make_packages failed"
|
|
|
|
"$CONTRIB_SDIST"/make_tgz || fail "make_tgz failed"
|
|
|
|
|
|
info "done."
|
|
ls -la "$DISTDIR"
|
|
sha256sum "$DISTDIR"/*
|