File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Prerequisites
44
44
45
45
- Arduino 1.6.8 (or newer, current working version is 1.8.5)
46
46
- git
47
- - Python 3.x (https://python.org)
47
+ - Python ≥3.7 (https://python.org)
48
48
- terminal, console, or command prompt (depending on your OS)
49
49
- Internet connection
50
50
- Uninstalling any core version installed via Board Manager
Original file line number Diff line number Diff line change 183
183
"""
184
184
185
185
import argparse
186
- from shutil import copyfile
187
186
import glob
187
+ import locale
188
188
import os
189
189
import platform
190
- import traceback
191
190
import sys
192
191
import textwrap
193
192
import time
193
+ import traceback
194
+
195
+ from shutil import copyfile
196
+
197
+
198
+ # Stay in sync with our bundled version
199
+ PYTHON_REQUIRES = (3 , 7 )
200
+
201
+ if sys .version_info < PYTHON_REQUIRES :
202
+ raise SystemExit (f"{ __file__ } \n Minimal supported version of Python is { PYTHON_REQUIRES [0 ]} .{ PYTHON_REQUIRES [1 ]} " )
194
203
195
- import locale
196
204
197
205
# Need to work on signature line used for match to avoid conflicts with
198
206
# existing embedded documentation methods.
@@ -682,8 +690,6 @@ def main():
682
690
if debug_enabled :
683
691
locale_dbg ()
684
692
685
- default_locale = locale .getdefaultlocale ()
686
- print_msg (f'default locale: { default_locale } ' )
687
693
print_msg (f'default_encoding: { default_encoding } ' )
688
694
689
695
print_dbg (f"runtime_ide_path: { runtime_ide_path } " )
You can’t perform that action at this time.
0 commit comments