@@ -12,7 +12,7 @@ embuilder build zlib bzip2
12
12
13
13
pushd cpython/builddir/host
14
14
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)
16
16
ln -sfr Modules/Setup.stdlib Modules/Setup.local
17
17
export FREEZE_MODULE=../build/Programs/_freeze_module
18
18
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
22
22
# includes aren't need for distribution, various libraries
23
23
# won't be used in the web (at least for now)
24
24
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
25
27
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
27
33
rm -rf lib/python3.11/curses
28
34
rm -rf lib/python3.11/dbm
29
35
rm -rf lib/python3.11/distutils/command/wininst-* .exe
30
36
rm -rf lib/python3.11/encoding/* .py
31
37
rm -rf lib/python3.11/ensurepip
32
38
rm -rf lib/python3.11/idlelib
33
39
rm -rf lib/python3.11/lib2to3
40
+ rm -rf lib/python3.11/multiprocessing
41
+ rm -rf lib/python3.11/pydoc_data
34
42
rm -rf lib/python3.11/test
35
43
rm -rf lib/python3.11/tkinter
36
44
rm -rf lib/python3.11/turtle.py
37
45
rm -rf lib/python3.11/turtledemo
38
46
rm -rf lib/python3.11/venv
47
+ rm -f lib/python3.11/webbrowser.py
39
48
rm -rf lib/python3.11/wsgiref
40
49
find lib/python3.11 -type f \( -iname \* .opt-1.pyc -o -iname \* .opt-2.pyc \) -delete
41
50
# os.py is a marker for finding the correct lib directory
0 commit comments