Skip to content

Commit 4ba1812

Browse files
brettcannonhugovk
andauthored
[3.14] GH-133600: Backport file reorg of Tools/wasm/wasi (GH-135950)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 2045453 commit 4ba1812

File tree

7 files changed

+398
-377
lines changed

7 files changed

+398
-377
lines changed

.github/CODEOWNERS

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,12 @@ Lib/concurrent/futures/interpreter.py @ericsnowcurrently
302302
**/*-ios* @freakboy3742
303303

304304
# WebAssembly
305-
/Tools/wasm/ @brettcannon @freakboy3742
305+
Tools/wasm/config.site-wasm32-emscripten @freakboy3742
306+
/Tools/wasm/README.md @brettcannon @freakboy3742
307+
/Tools/wasm/wasi-env @brettcannon
308+
/Tools/wasm/wasi_build.py @brettcannon
309+
/Tools/wasm/emscripten @freakboy3742
310+
/Tools/wasm/wasi @brettcannon
306311

307312
# SBOM
308313
/Misc/externals.spdx.json @sethmlarson

.github/workflows/reusable-wasi.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ jobs:
6464
# (Make sure to keep the key in sync with the other config.cache step below.)
6565
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ env.WASI_SDK_VERSION }}-${{ env.WASMTIME_VERSION }}-${{ inputs.config_hash }}-${{ hashFiles('Tools/wasm/wasi.py') }}-${{ env.pythonLocation }}
6666
- name: "Configure build Python"
67-
run: python3 Tools/wasm/wasi.py configure-build-python -- --config-cache --with-pydebug
67+
run: python3 Tools/wasm/wasi configure-build-python -- --config-cache --with-pydebug
6868
- name: "Make build Python"
69-
run: python3 Tools/wasm/wasi.py make-build-python
69+
run: python3 Tools/wasm/wasi make-build-python
7070
- name: "Restore host config.cache"
7171
uses: actions/cache@v4
7272
with:
@@ -75,9 +75,9 @@ jobs:
7575
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ env.WASI_SDK_VERSION }}-${{ env.WASMTIME_VERSION }}-${{ inputs.config_hash }}-${{ hashFiles('Tools/wasm/wasi.py') }}-${{ env.pythonLocation }}
7676
- name: "Configure host"
7777
# `--with-pydebug` inferred from configure-build-python
78-
run: python3 Tools/wasm/wasi.py configure-host -- --config-cache
78+
run: python3 Tools/wasm/wasi configure-host -- --config-cache
7979
- name: "Make host"
80-
run: python3 Tools/wasm/wasi.py make-host
80+
run: python3 Tools/wasm/wasi make-host
8181
- name: "Display build info"
8282
run: make --directory "${CROSS_BUILD_WASI}" pythoninfo
8383
- name: "Test"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Backport file reorganization for Tools/wasm/wasi.
2+
3+
This should make backporting future code changes easier. It also simplifies
4+
instructions around how to do WASI builds in the devguide.

Tools/wasm/wasi-env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/sh
22
set -e
33

4-
# NOTE: to be removed once no longer used in https://github.com/python/buildmaster-config/blob/main/master/custom/factories.py .
4+
# NOTE: to be removed once no longer used in https://github.com/python/buildmaster-config/blob/main/master/custom/factories.py ;
5+
# expected in Python 3.18 as 3.13 is when `wasi.py` was introduced.
56

67
# function
78
usage() {

0 commit comments

Comments
 (0)