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
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

View File

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

View File

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

View File

@ -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