File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6969echo " Converting Panel apps to Pyodide worker output..."
7070export 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
7373cd " ${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
8490cd " ${ROOT_DIR} "
You can’t perform that action at this time.
0 commit comments