Przeglądaj źródła

Tools: specify pymonocypher version in more places

and confirm version when running tools
cuav-chen2 10 miesięcy temu
rodzic
commit
eaa146ff90

+ 4 - 1
scripts/generate_keys.py

@@ -9,9 +9,12 @@ import base64
 try:
     import monocypher
 except ImportError:
-    print("Please install monocypher with: python3 -m pip install pymonocypher")
+    Logs.error("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
     sys.exit(1)
 
+if monocypher.__version__ != "3.1.3.2":
+    Logs.error("must use monocypher 3.1.3.2, please run: python3 -m pip install pymonocypher==3.1.3.2")
+    sys.exit(1)
 
 if len(sys.argv) != 2:
     print("Usage: generate_keys.py BASENAME")

+ 1 - 1
scripts/install_build_env.sh

@@ -5,7 +5,7 @@ python3 -m pip install pymavlink
 python3 -m pip install dronecan
 python3 -m pip install pyserial
 python3 -m pip install pexpect
-python3 -m pip install pymonocypher
+python3 -m pip install pymonocypher==3.1.3.2
 
 wget https://downloads.arduino.cc/arduino-cli/arduino-cli_0.27.1_Linux_64bit.tar.gz
 mkdir -p bin

+ 1 - 1
scripts/secure_command.py

@@ -10,7 +10,7 @@ from dronecan import uavcan
 try:
     import monocypher
 except ImportError:
-    print("Please install monocypher with: python3 -m pip install pymonocypher")
+    print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
     sys.exit(1)
 
 

+ 1 - 1
scripts/sign_fw.py

@@ -10,7 +10,7 @@ import base64
 try:
     import monocypher
 except ImportError:
-    print("Please install monocypher with: python3 -m pip install pymonocypher")
+    print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
     sys.exit(1)
 
 key_len = 32