Skip to content

Commit b2fd367

Browse files
committed
Create data folder into Panel and copy wheel temporarily
1 parent 8a1f9c8 commit b2fd367

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

scripts/build_wasm.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,22 @@ fi
6969
echo "Converting Panel apps to Pyodide worker output..."
7070
export PYTHONPATH="${ROOT_DIR}/src:${PYTHONPATH:-}"
7171

72-
# Change directory into 'panel' so relative paths resolve correctly!
72+
# Change directory into 'panel' so relative paths resolve correctly
7373
cd "${ROOT_DIR}/panel"
7474

75+
# Bring the wheel into the current folder so we can pass just the filename
76+
cp "${ROOT_DIR}/${SIMDEC_WHEEL_PATH}" .
77+
7578
"${PYTHON_BIN}" -m panel convert \
7679
simdec_app.py \
7780
sampling.py \
7881
--to pyodide-worker \
7982
--out "${ROOT_DIR}/${OUT_DIR}" \
80-
--requirements "${ROOT_DIR}/${SIMDEC_WHEEL_PATH}" numpy pandas matplotlib seaborn scipy SALib \
81-
--resources "${ROOT_DIR}/panel/data/stress.csv"
83+
--requirements "${WHEEL_FILENAME}" numpy pandas matplotlib seaborn scipy SALib \
84+
--resources data/stress.csv
85+
86+
# Clean up the copied wheel
87+
rm "${WHEEL_FILENAME}"
8288

8389
# Step back out to the root directory for the rest of the script
8490
cd "${ROOT_DIR}"

0 commit comments

Comments
 (0)