File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
"""Create a WASM asset bundle directory structure
3
3
4
- The WASM assett bundles are pre-loaded into the final WASM build. The bundle
4
+ The WASM asset bundles are pre-loaded by the final WASM build. The bundle
5
5
contains:
6
6
7
7
- a stripped down, pyc-only stdlib zip file, e.g. {PREFIX}/lib/python311.zip
8
8
- os.py as marker module {PREFIX}/lib/python3.11/os.py
9
- - empty lib-dynload directory {PREFIX}/lib/python3.11/lib-dynload/.empty
9
+ - empty lib-dynload directory, to make sure it is copied into the bundle {PREFIX}/lib/python3.11/lib-dynload/.empty
10
10
"""
11
11
12
12
import argparse
@@ -159,7 +159,7 @@ def main():
159
159
args .wasm_stdlib = args .wasm_root / WASM_STDLIB
160
160
args .wasm_dynload = args .wasm_root / WASM_DYNLOAD
161
161
162
- # empty, unused directory for dynamic libs
162
+ # empty, unused directory for dynamic libs, but required for site initialization.
163
163
args .wasm_dynload .mkdir (parents = True , exist_ok = True )
164
164
marker = args .wasm_dynload / ".empty"
165
165
marker .touch ()
You can’t perform that action at this time.
0 commit comments