Skip to content

Commit 29a7d12

Browse files
authored
Refactor panel convert command in build_wasm.sh
Updated the panel convert command to use a relative path for requirements.
1 parent e01b7a3 commit 29a7d12

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/build_wasm.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ echo "Converting Panel apps to Pyodide worker output..."
6464
export PYTHONPATH="${ROOT_DIR}/src:${PYTHONPATH:-}"
6565

6666
# Use the full path for the requirements so the converter can find the file
67-
"${PYTHON_BIN}" -m panel convert "${ROOT_DIR}/panel/simdec_app.py" "${ROOT_DIR}/panel/sampling.py" \
68-
--to pyodide-worker \
69-
--out "${OUT_DIR}" \
70-
--requirements "${ROOT_DIR}/${SIMDEC_WHEEL_PATH}" numpy pandas matplotlib seaborn scipy SALib \
71-
--resources "${ROOT_DIR}/panel/data/stress.csv"
67+
"${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"
7274

7375
# Copy custom index page and static assets
7476
echo "Copying custom index page and static assets..."

0 commit comments

Comments
 (0)