Port package to Python 3
(Closes: #936149)
Stuart Prescott
4 years ago
17 | 17 |
Depends:
|
18 | 18 |
arduino-core (>= 1:1.0+dfsg-8),
|
19 | 19 |
make,
|
20 | |
python,
|
21 | |
python-serial,
|
|
20 |
python3,
|
|
21 |
python3-serial,
|
22 | 22 |
${misc:Depends}
|
23 | 23 |
Recommends:
|
24 | 24 |
screen,
|
|
0 |
--- a/bin/ard-reset-arduino
|
|
1 |
+++ b/bin/ard-reset-arduino
|
|
2 |
@@ -1,4 +1,4 @@
|
|
3 |
-#!/usr/bin/env python
|
|
4 |
+#!/usr/bin/python3
|
|
5 |
|
|
6 |
from __future__ import print_function
|
|
7 |
import serial
|
|
8 |
--- a/tests/script/bootstrap/common.sh
|
|
9 |
+++ b/tests/script/bootstrap/common.sh
|
|
10 |
@@ -160,15 +160,15 @@
|
|
11 |
fi
|
|
12 |
fi
|
|
13 |
|
|
14 |
- if ! command -v python >/dev/null 2>&1; then
|
|
15 |
+ if ! command -v python3 >/dev/null 2>&1; then
|
|
16 |
echo "Installing Python..."
|
|
17 |
- _install "python"
|
|
18 |
+ _install "python3"
|
|
19 |
fi
|
|
20 |
|
|
21 |
- if ! command -v pip >/dev/null 2>&1; then
|
|
22 |
+ if ! command -v pip3 >/dev/null 2>&1; then
|
|
23 |
echo "Installing Pip..."
|
|
24 |
if ! command -v easy_install >/dev/null 2>&1; then
|
|
25 |
- _install "python-setuptools"
|
|
26 |
+ _install "python3-setuptools"
|
|
27 |
fi
|
|
28 |
|
|
29 |
if ! command -v easy_install >/dev/null 2>&1; then
|
|
30 |
@@ -184,7 +184,7 @@
|
|
31 |
PIP_SUDO_CMD=$SUDO_CMD
|
|
32 |
fi
|
|
33 |
|
|
34 |
- $PIP_SUDO_CMD pip install --src dependencies --pre -Ur $BOOTSTRAP_DIR/pip-requirements.txt
|
|
35 |
+ $PIP_SUDO_CMD pip3 install --src dependencies --pre -Ur $BOOTSTRAP_DIR/pip-requirements.txt
|
|
36 |
|
|
37 |
COMMON_SOURCED=1
|
|
38 |
fi
|