Upgrade to Pyodide 0.23.4 (with Python 3.11) and compile dependencies (#603)

* Build packages with latest pyodide, compile wheels to use pyc files, output package_filenames.json
This commit is contained in:
Alex Hall
2023-08-02 20:15:53 +02:00
committed by GitHub
parent 4cfa033078
commit d72f177be0
4 changed files with 29 additions and 4 deletions

View File

@@ -17,14 +17,16 @@ echo "###############################################################"
echo "## Prepare python packages"
cd _build/pyodide
git checkout 0.23.4 || (git fetch && git checkout 0.23.4)
./run_docker make
cp ../../../requirements3.txt .
./run_docker pyodide build -r requirements3.txt --output-lockfile result.txt
cat result.txt
./run_docker "source emsdk/emsdk/emsdk_env.sh && pyodide build -r requirements3.txt --outdir grist-packages"
./run_docker pyodide py-compile grist-packages
cd ../..
echo ""
echo "###############################################################"
echo "## Copy out python packages"
node ./packages.js _build/pyodide/dist/ _build/packages/
rm -rf _build/packages/
node ./packages.js _build/pyodide/grist-packages/ _build/packages/