tbuild.sh - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
tbuild.sh (900B)
---
1 #!/bin/bash
2
3 set -e
4
5 PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../../.."
6 CONTRIB="$PROJECT_ROOT/contrib"
7 CONTRIB_SDIST="$CONTRIB/build-linux/sdist"
8 DISTDIR="$PROJECT_ROOT/dist"
9
10 . "$CONTRIB"/build_tools_util.sh
11
12 # note that at least py3.7 is needed, to have https://bugs.python.org/issue30693
13 python3 --version || fail "python interpreter not found"
14
15 break_legacy_easy_install
16
17 # upgrade to modern pip so that it knows the flags we need.
18 # we will then install a pinned version of pip as part of requirements-build-sdist
19 python3 -m pip install --upgrade pip
20
21 info "Installing pinned requirements."
22 python3 -m pip install --no-dependencies --no-warn-script-location -r "$CONTRIB"/deterministic-build/requirements-build-sdist.txt
23
24
25 "$CONTRIB"/make_packages || fail "make_packages failed"
26
27 "$CONTRIB_SDIST"/make_tgz || fail "make_tgz failed"
28
29
30 info "done."
31 ls -la "$DISTDIR"
32 sha256sum "$DISTDIR"/*