Skip to content

Commit 06d2caf

Browse files
authored
Remove modules that pyodide does and more
2 parents ff06c0d + d92a27e commit 06d2caf

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

build-python-host-emscripten.sh

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,30 @@ pushd ../usr/local
2222
# includes aren't need for distribution, various libraries
2323
# won't be used in the web (at least for now)
2424
rm -rf bin include lib/pkgconfig lib/libpython3.11d.a
25+
rm -f lib/python3.11/_aix_support.py
26+
rm -f lib/python3.11/_bootsubprocess.py
27+
rm -rf lib/python3.11/_osx_support.py
28+
rm -f lib/python3.11/antigravity.py
29+
rm -rf lib/python3.11/asyncio
30+
rm -rf lib/python3.11/concurrent
31+
rm -rf lib/python3.11/config-3.11*
32+
rm -rf lib/python3.11/ctypes
33+
rm -rf lib/python3.11/curses
34+
rm -rf lib/python3.11/dbm
35+
rm -rf lib/python3.11/distutils
36+
rm -rf lib/python3.11/encoding/*.py
37+
rm -rf lib/python3.11/ensurepip
38+
rm -rf lib/python3.11/idlelib
39+
rm -rf lib/python3.11/lib2to3
40+
rm -rf lib/python3.11/multiprocessing
41+
rm -rf lib/python3.11/pydoc_data
2542
rm -rf lib/python3.11/test
26-
rm -rf lib/python3.11/config-3.11d
2743
rm -rf lib/python3.11/tkinter
44+
rm -rf lib/python3.11/turtle.py
2845
rm -rf lib/python3.11/turtledemo
29-
rm -rf lib/python3.11/wsgiref
30-
rm -rf lib/python3.11/lib2to3
3146
rm -rf lib/python3.11/venv
32-
rm -rf lib/python3.11/idlelib
33-
rm -rf lib/python3.11/distutils
34-
rm -rf lib/python3.11/encoding/*.py
47+
rm -f lib/python3.11/webbrowser.py
48+
rm -rf lib/python3.11/wsgiref
3549
find lib/python3.11 -type f \( -iname \*.opt-1.pyc -o -iname \*.opt-2.pyc \) -delete
3650
# os.py is a marker for finding the correct lib directory
3751
# so its important to keep

0 commit comments

Comments
 (0)