mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
update to python3
This commit is contained in:
parent
94fcc8c9a4
commit
7e382fb790
@ -5,10 +5,11 @@ FROM debian:9
|
||||
# install build tools and dependencies
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential git python python-ecdsa gcc-arm-none-eabi curl
|
||||
RUN apt-get install -y unzip python-pip
|
||||
build-essential curl unzip git python3 python3-pip gcc-arm-none-eabi libnewlib-arm-none-eabi
|
||||
|
||||
ENV PROTOBUF_VERSION=3.4.0
|
||||
RUN curl -LO "https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-linux-x86_64.zip"
|
||||
RUN unzip "protoc-${PROTOBUF_VERSION}-linux-x86_64.zip" -d /usr
|
||||
RUN pip2 install "protobuf==${PROTOBUF_VERSION}"
|
||||
RUN pip3 install "protobuf==${PROTOBUF_VERSION}" ecdsa
|
||||
|
||||
RUN ln -s python3 /usr/bin/python
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python2
|
||||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
import json, sys
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python2
|
||||
#!/usr/bin/env python
|
||||
import json, os, sys
|
||||
|
||||
import collections, numbers
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python2
|
||||
#!/usr/bin/env python
|
||||
from collections import defaultdict
|
||||
from messages_pb2 import MessageType
|
||||
from types_pb2 import wire_in, wire_out, wire_debug_in, wire_debug_out, wire_tiny, wire_bootloader
|
||||
|
Loading…
Reference in New Issue
Block a user