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:
274274 @$(PYTHON ) tools/board_stubs/build_board_specific_stubs/board_stub_builder.py
275275 @cp -r tools/board_stubs/circuitpython_setboard circuitpython-stubs/circuitpython_setboard
276276 @$(PYTHON ) -m build circuitpython-stubs
277+ @touch circuitpython-stubs/board/__init__.py
277278
278279.PHONY : check-stubs
279280check-stubs : stubs
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ def header(txt: str) -> str:
3535
3636
3737def 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 )
3842 parser = argparse .ArgumentParser (
3943 prog = __name__ ,
4044 usage = "Install CircuitPython board-specific stubs" ,
You can’t perform that action at this time.
0 commit comments