56
56
}
57
57
58
58
ADDITIONAL_MODULES = {
59
- "fontio" : "CIRCUITPY_DISPLAYIO" ,
60
- "terminalio" : "CIRCUITPY_DISPLAYIO" ,
59
+ "_asyncio" : "MICROPY_PY_UASYNCIO" ,
61
60
"adafruit_bus_device" : "CIRCUITPY_BUSDEVICE" ,
62
61
"adafruit_pixelbuf" : "CIRCUITPY_PIXELBUF" ,
62
+ "array" : "CIRCUITPY_ARRAY" ,
63
+ # always available, so depend on something that's always 1.
64
+ "builtins" : "CIRCUITPY" ,
65
+ "collections" : "CIRCUITPY_COLLECTIONS" ,
66
+ "fontio" : "CIRCUITPY_DISPLAYIO" ,
67
+ "io" : "CIRCUITPY_IO" ,
68
+ "select" : "MICROPY_PY_USELECT_SELECT" ,
69
+ "terminalio" : "CIRCUITPY_DISPLAYIO" ,
70
+ "sys" : "CIRCUITPY_SYS" ,
63
71
"usb" : "CIRCUITPY_USB_HOST" ,
64
72
}
65
73
74
+ MODULES_NOT_IN_SHARED_BINDINGS = ["_asyncio" , "array" , "binascii" , "builtins" , "collections" , "errno" , "json" , "re" , "select" , "sys" , "ulab" ]
75
+
66
76
FROZEN_EXCLUDES = ["examples" , "docs" , "tests" , "utils" , "conf.py" , "setup.py" ]
67
77
"""Files and dirs at the root of a frozen directory that should be ignored.
68
78
This is the same list as in the preprocess_frozen_modules script."""
@@ -82,7 +92,7 @@ def get_shared_bindings():
82
92
""" Get a list of modules in shared-bindings based on folder names.
83
93
"""
84
94
shared_bindings_dir = get_circuitpython_root_dir () / "shared-bindings"
85
- return [item .name for item in shared_bindings_dir .iterdir ()] + [ "binascii" , "errno" , "json" , "re" , "ulab" ]
95
+ return [item .name for item in shared_bindings_dir .iterdir ()] + MODULES_NOT_IN_SHARED_BINDINGS
86
96
87
97
88
98
def get_board_mapping ():
0 commit comments