1
0
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:
Pavol Rusnak 2018-01-12 00:03:55 +01:00
parent 94fcc8c9a4
commit 7e382fb790
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 7 additions and 6 deletions

View File

@ -5,10 +5,11 @@ FROM debian:9
# install build tools and dependencies # install build tools and dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential git python python-ecdsa gcc-arm-none-eabi curl build-essential curl unzip git python3 python3-pip gcc-arm-none-eabi libnewlib-arm-none-eabi
RUN apt-get install -y unzip python-pip
ENV PROTOBUF_VERSION=3.4.0 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 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 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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python2 #!/usr/bin/env python
from __future__ import print_function from __future__ import print_function
import json, sys import json, sys

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python2 #!/usr/bin/env python
import json, os, sys import json, os, sys
import collections, numbers import collections, numbers

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python2 #!/usr/bin/env python
from collections import defaultdict from collections import defaultdict
from messages_pb2 import MessageType from messages_pb2 import MessageType
from types_pb2 import wire_in, wire_out, wire_debug_in, wire_debug_out, wire_tiny, wire_bootloader from types_pb2 import wire_in, wire_out, wire_debug_in, wire_debug_out, wire_tiny, wire_bootloader