File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Prerequisites
4444
4545- Arduino 1.6.8 (or newer, current working version is 1.8.5)
4646- git
47- - Python 3.x (https://python.org)
47+ - Python ≥3.7 (https://python.org)
4848- terminal, console, or command prompt (depending on your OS)
4949- Internet connection
5050- Uninstalling any core version installed via Board Manager
Original file line number Diff line number Diff line change 183183"""
184184
185185import argparse
186- from shutil import copyfile
187186import glob
187+ import locale
188188import os
189189import platform
190- import traceback
191190import sys
192191import textwrap
193192import 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 ]} " )
194203
195- import locale
196204
197205# Need to work on signature line used for match to avoid conflicts with
198206# existing embedded documentation methods.
@@ -682,8 +690,6 @@ def main():
682690 if debug_enabled :
683691 locale_dbg ()
684692
685- default_locale = locale .getdefaultlocale ()
686- print_msg (f'default locale: { default_locale } ' )
687693 print_msg (f'default_encoding: { default_encoding } ' )
688694
689695 print_dbg (f"runtime_ide_path: { runtime_ide_path } " )
You can’t perform that action at this time.
0 commit comments