https://github.com/python/cpython/commit/66cc6d4c502074ddbfeda1be28fae6aa4535e4a8
commit: 66cc6d4c502074ddbfeda1be28fae6aa4535e4a8
branch: main
author: Brett Cannon <[email protected]>
committer: brettcannon <[email protected]>
date: 2024-09-26T21:23:41Z
summary:
Remove some unused files related to WASM/WASI (GH-124635)
files:
D Tools/wasm/Setup.local.example
D Tools/wasm/build_wasi.sh
M Tools/wasm/wasi-env
diff --git a/Tools/wasm/Setup.local.example b/Tools/wasm/Setup.local.example
deleted file mode 100644
index 7b2fb13f6ceef2..00000000000000
--- a/Tools/wasm/Setup.local.example
+++ /dev/null
@@ -1,13 +0,0 @@
-# Module/Setup.local with reduced stdlib
-*disabled*
-_asyncio
-_bz2
-_decimal
-_pickle
-pyexpat _elementtree
-_sha3 _blake2
-_zoneinfo
-xxsubtype
-
-# cjk codecs
-#_multibytecodec _codecs_cn _codecs_hk _codecs_iso2022 _codecs_jp _codecs_kr
_codecs_tw
diff --git a/Tools/wasm/build_wasi.sh b/Tools/wasm/build_wasi.sh
deleted file mode 100755
index 436306222ce1d0..00000000000000
--- a/Tools/wasm/build_wasi.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/bash
-
-set -e -x
-
-# Quick check to avoid running configure just to fail in the end.
-if [ -f Programs/python.o ]; then
- echo "Can't do an out-of-tree build w/ an in-place build pre-existing
(i.e., found Programs/python.o)" >&2
- exit 1
-fi
-
-if [ ! -f Modules/Setup.local ]; then
- touch Modules/Setup.local
-fi
-
-# TODO: check if `make` and `pkgconfig` are installed
-# TODO: detect if wasmtime is installed
-
-# Create the "build" Python.
-mkdir -p builddir/build
-pushd builddir/build
-../../configure -C
-make -s -j 4 all
-export PYTHON_VERSION=`./python -c 'import sys;
print(f"{sys.version_info.major}.{sys.version_info.minor}")'`
-popd
-
-# Create the "host"/WASI Python.
-export CONFIG_SITE="$(pwd)/Tools/wasm/config.site-wasm32-wasi"
-export HOSTRUNNER="wasmtime run --mapdir /::$(pwd) --env
PYTHONPATH=/builddir/wasi/build/lib.wasi-wasm32-$PYTHON_VERSION
$(pwd)/builddir/wasi/python.wasm --"
-
-mkdir -p builddir/wasi
-pushd builddir/wasi
-../../Tools/wasm/wasi-env \
- ../../configure \
- -C \
- --host=wasm32-unknown-wasi \
- --build=$(../../config.guess) \
- --with-build-python=../build/python
-make -s -j 4 all
-# Create a helper script for executing the host/WASI Python.
-printf "#!/bin/sh\nexec $HOSTRUNNER \"\$@\"\n" > run_wasi.sh
-chmod 755 run_wasi.sh
-./run_wasi.sh --version
-popd
-
diff --git a/Tools/wasm/wasi-env b/Tools/wasm/wasi-env
index 95eda863cb62c6..4c5078a1f675e2 100755
--- a/Tools/wasm/wasi-env
+++ b/Tools/wasm/wasi-env
@@ -1,6 +1,8 @@
#!/bin/sh
set -e
+# NOTE: to be removed once no longer used in
https://github.com/python/buildmaster-config/blob/main/master/custom/factories.py
.
+
# function
usage() {
echo "wasi-env - Run command with WASI-SDK"
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]