Skip to content

Commit 0c15a87

Browse files
authored
Fix paths for output and requirements in build_wasm.sh
Updated paths for output directory and wheel file in build script.
1 parent 3653fca commit 0c15a87

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

scripts/build_wasm.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ rm -rf dist/*.whl
3838
"${PYTHON_BIN}" -m build --wheel .
3939

4040
# Identify the generated wheel file
41-
# This prevents the "unbound variable" error by checking if the file exists
4241
SIMDEC_WHEEL_PATH=$(ls dist/*.whl | head -n 1 || echo "")
4342

4443
if [[ -z "${SIMDEC_WHEEL_PATH}" ]]; then
@@ -65,12 +64,12 @@ export PYTHONPATH="${ROOT_DIR}/src:${PYTHONPATH:-}"
6564

6665
# Use the full path for the requirements so the converter can find the file
6766
"${PYTHON_BIN}" -m panel convert \
68-
"${ROOT_DIR}/panel/simdec_app.py" \
69-
"${ROOT_DIR}/panel/sampling.py" \
70-
--to pyodide-worker \
71-
--out "${OUT_DIR}" \
72-
--requirements "${SIMDEC_WHEEL_PATH}" numpy pandas matplotlib seaborn scipy SALib \
73-
--resources "${ROOT_DIR}/panel/data/stress.csv"
67+
"${ROOT_DIR}/panel/simdec_app.py" \
68+
"${ROOT_DIR}/panel/sampling.py" \
69+
--to pyodide-worker \
70+
--out "${ROOT_DIR}/${OUT_DIR}" \
71+
--requirements "${ROOT_DIR}/${SIMDEC_WHEEL_PATH}" numpy pandas matplotlib seaborn scipy SALib \
72+
--resources "${ROOT_DIR}/panel/data/stress.csv"
7473

7574
# Copy custom index page and static assets
7675
echo "Copying custom index page and static assets..."

0 commit comments

Comments
 (0)