Skip to content

Commit ae07878

Browse files
committed
Remove more modules
1 parent 0664054 commit ae07878

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

build-python-host-emscripten.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ embuilder build zlib bzip2
1212

1313
pushd cpython/builddir/host
1414
cp ../../../config.site-wasm config.site-wasm
15-
CONFIG_SITE=config.site-wasm READELF=true ZLIB_LIBS="-s USE_ZLIB" BZIP2_LIBS="-s USE_BZIP2" emconfigure ../../configure -C --without-pymalloc --enable-big-digits=30 --with-pydebug --with-suffix=.wasm --with-ensurepip=no --disable-ipv6 --host=wasm32-unknown-emscripten --build=$(../../config.guess)
15+
CONFIG_SITE=config.site-wasm READELF=true ZLIB_LIBS="-s USE_ZLIB" BZIP2_LIBS="-s USE_BZIP2" emconfigure ../../configure -C --without-pymalloc --enable-big-digits=30 --with-pydebug --with-suffix=.wasm --with-ensurepip=no --disable-ipv6 --host=$_PYTHON_HOST_PLATFORM --build=$(../../config.guess)
1616
ln -sfr Modules/Setup.stdlib Modules/Setup.local
1717
export FREEZE_MODULE=../build/Programs/_freeze_module
1818
emmake make CROSS_COMPILE=yes FREEZE_MODULE=../build/Programs/_freeze_module PYTHON_FOR_BUILD=../build/python _PYTHON_HOST_PLATFORM=wasm32-unknown-emscripten -j$(nproc)
@@ -22,20 +22,29 @@ 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
2527
rm -rf lib/python3.11/_osx_support.py
26-
rm -rf lib/python3.11/config-3.11d
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
2733
rm -rf lib/python3.11/curses
2834
rm -rf lib/python3.11/dbm
2935
rm -rf lib/python3.11/distutils/command/wininst-*.exe
3036
rm -rf lib/python3.11/encoding/*.py
3137
rm -rf lib/python3.11/ensurepip
3238
rm -rf lib/python3.11/idlelib
3339
rm -rf lib/python3.11/lib2to3
40+
rm -rf lib/python3.11/multiprocessing
41+
rm -rf lib/python3.11/pydoc_data
3442
rm -rf lib/python3.11/test
3543
rm -rf lib/python3.11/tkinter
3644
rm -rf lib/python3.11/turtle.py
3745
rm -rf lib/python3.11/turtledemo
3846
rm -rf lib/python3.11/venv
47+
rm -f lib/python3.11/webbrowser.py
3948
rm -rf lib/python3.11/wsgiref
4049
find lib/python3.11 -type f \( -iname \*.opt-1.pyc -o -iname \*.opt-2.pyc \) -delete
4150
# os.py is a marker for finding the correct lib directory

0 commit comments

Comments
 (0)