Skip to content

Commit 95f6087

Browse files
committed
fix(itkwasm): add WasiConfig args for wasmtime 27.0.0
1 parent 78d1395 commit 95f6087

File tree

3 files changed

+36
-34
lines changed

3 files changed

+36
-34
lines changed

packages/core/python/itkwasm/itkwasm/pipeline.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
WasiConfig,
4646
Linker,
4747
WasmtimeError,
48+
DirPerms,
49+
FilePerms
4850
)
4951

5052
# Get the value of the ITKWASM_CACHE_DIR environment variable
@@ -83,7 +85,7 @@ def __init__(
8385
wasi_config.argv = args
8486

8587
for preopen in preopen_directories:
86-
wasi_config.preopen_dir(preopen, preopen)
88+
wasi_config.preopen_dir(preopen, preopen, DirPerms.READ_WRITE, FilePerms.READ_WRITE)
8789

8890
store.set_wasi(wasi_config)
8991

packages/core/python/itkwasm/pixi.lock

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/python/itkwasm/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies = [
3333
"numpy",
3434
"typing_extensions",
3535
"platformdirs; sys_platform != \"emscripten\"",
36-
"wasmtime >= 13.0.2; sys_platform != \"emscripten\"",
36+
"wasmtime >= 27.0.0; sys_platform != \"emscripten\"",
3737
"importlib_metadata; python_version < \"3.10\"", "dask[array]>=2024.11.2,<2025",
3838
]
3939

0 commit comments

Comments
 (0)