mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
build: Use pipenv in docker build (#412)
This commit is contained in:
parent
8fb6beb314
commit
2a1e4c7ab6
@ -14,6 +14,7 @@ RUN curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_V
|
||||
# use zipfile module to extract files world-readable
|
||||
RUN python3 -m zipfile -e "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" /usr/local && chmod 755 /usr/local/bin/protoc
|
||||
|
||||
RUN pip3 install "protobuf==${PROTOBUF_VERSION}" ecdsa
|
||||
RUN pip3 install pipenv
|
||||
|
||||
|
||||
RUN ln -s python3 /usr/bin/python
|
||||
|
@ -3,6 +3,10 @@
|
||||
# script/build: Build the TREZOR firmware in a clean working tree.
|
||||
#
|
||||
|
||||
# this needs to be there, otherwise python click installer vomits an error
|
||||
export LC_ALL=C.UTF-8
|
||||
export LANG=C.UTF-8
|
||||
|
||||
set -eu
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
@ -34,7 +38,7 @@ worktree_setup() {
|
||||
worktree_build() {
|
||||
local path="$1"
|
||||
|
||||
( cd "$path" && script/cibuild )
|
||||
( cd "$path" && pipenv install && pipenv run script/cibuild )
|
||||
}
|
||||
|
||||
worktree_copy() {
|
||||
|
Loading…
Reference in New Issue
Block a user