Skip to content
Open
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
472f775
Create a `_shared` module
brettcannon May 6, 2026
ae91c98
Merge remote-tracking branch 'upstream' into wasi-package
brettcannon May 6, 2026
15503a3
Attempt at getting `lib/` working
brettcannon Jun 3, 2026
db0bff7
Ignore "/dist/"
brettcannon Jun 3, 2026
b97d997
Get `lib/` working
brettcannon Jun 3, 2026
0808516
Add some caching
brettcannon Jun 3, 2026
353cf3c
Log what's going on
brettcannon Jun 4, 2026
99a8eb5
Fix an over-zealous substitution
brettcannon Jun 9, 2026
02870c2
Centralize context in an object
brettcannon Jun 9, 2026
b91761f
Make calculating if a debug build was used easier
brettcannon Jun 9, 2026
1cf9836
Run `ruff format`
brettcannon Jun 9, 2026
347e950
Add comment to clarify debug check for Python 3.13 and older
brettcannon Jun 9, 2026
6748280
Put the files into a subdirectory that records the Python version and…
brettcannon Jun 10, 2026
de141e8
Add the man page
brettcannon Jun 10, 2026
4c53d56
Symlink man page
brettcannon Jun 11, 2026
c5f1a65
Get symlinks working
brettcannon Jun 11, 2026
6048670
Fix the `clean` and `build` commands
brettcannon Jul 9, 2026
19899cd
Get `wasmtime.toml` copied over
brettcannon Jul 9, 2026
1b5b8e7
Copy `python.wasm`
brettcannon Jul 9, 2026
feef36d
Copy `pythonN.Md-config`
brettcannon Jul 9, 2026
32f2bd0
Get the wasmtime script working
brettcannon Jul 10, 2026
fbf38fe
`ruff format`
brettcannon Jul 10, 2026
4f69a2a
Get at the WASI build version easily
brettcannon Jul 10, 2026
fd0464e
Remove reproducible build comments from _package.py
brettcannon Jul 10, 2026
b7c618f
Add archiving
brettcannon Jul 15, 2026
5ff44ba
Ignore dist/
brettcannon Jul 15, 2026
ff35f02
Merge branch 'main' into wasi-package
brettcannon Jul 15, 2026
fe5c640
Add quiet mode for pythoninfo commands in main function
brettcannon Jul 15, 2026
d2b5418
Fix archive function to correctly store mtime argument
brettcannon Jul 15, 2026
3742dcb
Update gather function to use dynamic Python versioning in logs
brettcannon Jul 15, 2026
7406160
Format wasmtime_script for better readability
brettcannon Jul 15, 2026
1cf4769
Update archive function log message for clarity
brettcannon Jul 15, 2026
cb0f034
Add comment to clarify use of `xz -T`
brettcannon Jul 16, 2026
5ed0e89
Merge remote-tracking branch 'upstream' into wasi-package
brettcannon Jul 22, 2026
1c28ad8
Reformat
brettcannon Jul 22, 2026
612174b
Make all imports lazy
brettcannon Jul 22, 2026
7b475a5
`ruff check`
brettcannon Jul 22, 2026
f89df22
Plug a hole where the lack of a WASI SDK didn't raise an exception
brettcannon Jul 22, 2026
abc9ea4
Actually delete the generated `Setup.local`
brettcannon Jul 22, 2026
3789b64
Fix archive function to use the correct file name and set working dir…
brettcannon Jul 22, 2026
d97c44f
Make symlinks relative
brettcannon Jul 22, 2026
d9cd409
Add error handling for multiple or missing WASI SDKs
brettcannon Jul 22, 2026
f2214f9
Fix build interpreter to read build details from the correct file path
brettcannon Jul 22, 2026
8222bf4
Enhance archive function to support SOURCE_DATE_EPOCH
brettcannon Jul 22, 2026
8c77179
`ruff format`
brettcannon Jul 22, 2026
7883611
Add `lib-dynload` to get rid of a warning when launching the REPL
brettcannon Jul 22, 2026
28126f4
`ruff format`
brettcannon Jul 22, 2026
d14bb0d
Merge branch 'main' into wasi-package
brettcannon Jul 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Plug a hole where the lack of a WASI SDK didn't raise an exception
  • Loading branch information
brettcannon committed Jul 22, 2026
commit f89df22d3a2dc42405a1fbe023e4c6d4bafbd006
4 changes: 3 additions & 1 deletion Platforms/WASI/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ def wasi_sdk_path(self):
for path in opt_path.glob(f"wasi-sdk-{wasi_sdk_version}.0*")
if path.is_dir()
]
if len(potential_sdks) == 1:
if not potential_sdks:
raise ValueError(f"WASI SDK {wasi_sdk_version} not found in {opt_path}")
elif len(potential_sdks) == 1:
wasi_sdk_path = potential_sdks[0]
elif (default_path := opt_path / "wasi-sdk").is_dir():
wasi_sdk_path = default_path
Expand Down