File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
tools/board_stubs/circuitpython_setboard Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,7 @@ stubs:
274
274
@$(PYTHON ) tools/board_stubs/build_board_specific_stubs/board_stub_builder.py
275
275
@cp -r tools/board_stubs/circuitpython_setboard circuitpython-stubs/circuitpython_setboard
276
276
@$(PYTHON ) -m build circuitpython-stubs
277
+ @touch circuitpython-stubs/board/__init__.py
277
278
278
279
.PHONY : check-stubs
279
280
check-stubs : stubs
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ def header(txt: str) -> str:
35
35
36
36
37
37
def set_board ():
38
+ version_info = sys .version_info
39
+ if version_info .major < 3 or (version_info .major == 3 and version_info .minor < 9 ):
40
+ sys .stdout .write ("Python 3.9 is the minimum supported version for board specific stubs.\n " )
41
+ sys .exit (0 )
38
42
parser = argparse .ArgumentParser (
39
43
prog = __name__ ,
40
44
usage = "Install CircuitPython board-specific stubs" ,
You can’t perform that action at this time.
0 commit comments