diff --git a/build-python-host-emscripten.sh b/build-python-host-emscripten.sh index ad446c7..a896c24 100755 --- a/build-python-host-emscripten.sh +++ b/build-python-host-emscripten.sh @@ -5,17 +5,14 @@ shopt -s extglob mkdir -p cpython/builddir/host mkdir -p cpython/builddir/usr/local -export PYTHON_FOR_BUILD="$(pwd)/cpython/builddir/build/python" - # install emcc ports so configure is able to detect the dependencies embuilder build zlib bzip2 pushd cpython/builddir/host cp ../../../config.site-wasm config.site-wasm -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) +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-ensurepip=no --disable-ipv6 --host=wasm32-unknown-emscripten --build=$(../../config.guess) --with-build-python=$(pwd)/../build/python --with-freeze-module=$(pwd)/../build/Programs/_freeze_module ln -sfr Modules/Setup.stdlib Modules/Setup.local -export FREEZE_MODULE=../build/Programs/_freeze_module -emmake make CROSS_COMPILE=yes FREEZE_MODULE=../build/Programs/_freeze_module PYTHON_FOR_BUILD=../build/python _PYTHON_HOST_PLATFORM=wasm32-unknown-emscripten -j$(nproc) +emmake make -j$(nproc) make altinstall prefix=../usr/local pushd ../usr/local # not needed, as the binary is already loaded by the .html