@@ -50,22 +50,22 @@ build: python-build
5050
5151#### DIST / PUBLISH ####
5252
53- python-dist : python-sync-guest-resources
53+ python-dist interpreters = " " : python-sync-guest-resources
5454 - {{ rmrf}} {{ dist-root}}
5555 cd {{ repo-root}} / src/ sdk/ python/ core && uv run python -m build --outdir {{ core-dist}}
56- cd {{ repo-root}} / src/ sdk/ python/ wasm_backend && uv run maturin build --release --out {{ wasm-wheels}}
57- cd {{ repo-root}} / src/ sdk/ python/ hyperlight_js_backend && uv run maturin build --release --out {{ hyperlight-js-wheels}}
56+ cd {{ repo-root}} / src/ sdk/ python/ wasm_backend && uv run maturin build --release --out {{ wasm-wheels}} {{ interpreters }}
57+ cd {{ repo-root}} / src/ sdk/ python/ hyperlight_js_backend && uv run maturin build --release --out {{ hyperlight-js-wheels}} {{ interpreters }}
5858 cd {{ repo-root}} / src/ sdk/ python/ wasm_guests/ python_guest && uv run python -m build --outdir {{ python-guest-dist}}
5959 cd {{ repo-root}} / src/ sdk/ python/ wasm_guests/ javascript_guest && uv run python -m build --outdir {{ javascript-guest-dist}}
6060
6161# Build only the platform-specific maturin backend wheels.
6262# Used by CI to produce Windows wheels without needing guest binaries.
6363# Requires sandbox-world.wasm to exist (run `just wasm guest-compile-wit` first).
64- python-dist-backends : python-sync-env
64+ python-dist-backends interpreters = " " : python-sync-env
6565 - {{ rmrf}} {{ wasm-wheels}}
6666 - {{ rmrf}} {{ hyperlight-js-wheels}}
67- cd {{ repo-root}} / src/ sdk/ python/ wasm_backend && uv run maturin build --release --out {{ wasm-wheels}}
68- cd {{ repo-root}} / src/ sdk/ python/ hyperlight_js_backend && uv run maturin build --release --out {{ hyperlight-js-wheels}}
67+ cd {{ repo-root}} / src/ sdk/ python/ wasm_backend && uv run maturin build --release --out {{ wasm-wheels}} {{ interpreters }}
68+ cd {{ repo-root}} / src/ sdk/ python/ hyperlight_js_backend && uv run maturin build --release --out {{ hyperlight-js-wheels}} {{ interpreters }}
6969
7070python-publish repository = " pypi":
7171 uv publish {{ if repository != " pypi" { " --publish-url https://test.pypi.org/legacy/" } else { " " } }} {{ wasm-wheels}} / *
@@ -77,20 +77,20 @@ python-publish repository="pypi":
7777# Smoke-test the wheels in dist/pythonsdk/ by installing them into
7878# isolated environments and running basic tests.
7979# Requires `just python-dist` (root) to have been run first.
80- python-wheelhouse-test :
81- uv run --no-project --no-index \
80+ python-wheelhouse-test python - version = " " :
81+ uv run --no-project {{ if python-version != " " { " --python " + python-version } else { " " } }} --no-index \
8282 - -find-links={{ core-dist}} \
8383 - -find-links={{ wasm-wheels}} \
8484 - -find-links={{ python-guest-dist}} \
8585 - -with " hyperlight-sandbox[wasm,python_guest]" \
8686 python {{ repo-root}} / src/ sdk/ python/ tests/ wheelhouse_wasm_python.py
87- uv run --no-project --no-index \
87+ uv run --no-project {{ if python-version != " " { " --python " + python-version } else { " " } }} --no-index \
8888 - -find-links={{ core-dist}} \
8989 - -find-links={{ wasm-wheels}} \
9090 - -find-links={{ javascript-guest-dist}} \
9191 - -with " hyperlight-sandbox[wasm,javascript_guest]" \
9292 python {{ repo-root}} / src/ sdk/ python/ tests/ wheelhouse_wasm_js.py
93- uv run --no-project --no-index \
93+ uv run --no-project {{ if python-version != " " { " --python " + python-version } else { " " } }} --no-index \
9494 - -find-links={{ core-dist}} \
9595 - -find-links={{ hyperlight-js-wheels}} \
9696 - -find-links={{ javascript-guest-dist}} \
0 commit comments