Skip to content

Commit

Permalink
update pyodide to 0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
szabolcsdombi committed Feb 4, 2024
1 parent 26c74a2 commit 43bdc55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/pyodide/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.11.3
ENV EMSDK=/opt/emsdk EMSDK_NODE=/opt/emsdk/node/16.20.0_64bit/bin/node \
PATH=/opt/emsdk:/opt/emsdk/upstream/emscripten:/opt/emsdk/node/16.20.0_64bit/bin:$PATH
RUN git clone https://github.com/emscripten-core/emsdk.git $EMSDK &&\
emsdk install 3.1.45 && emsdk activate 3.1.45 && pip install pyodide-build==0.24.1 &&\
emsdk install 3.1.46 && emsdk activate 3.1.46 && pip install pyodide-build==0.25.0 &&\
python -c "from pyodide_build.build_env import init_environment; init_environment()"

COPY zengl-stubs /zengl/zengl-stubs
Expand Down
4 changes: 2 additions & 2 deletions examples/pyodide/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
</head>
<body>
<canvas id="canvas"></canvas>
<script src="https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js"></script>
<script src="https://cdn.jsdelivr.net/pyodide/v0.25.0/full/pyodide.js"></script>
<script>
(async () => {
const pyodide = await loadPyodide();
pyodide.canvas.setCanvas3D(document.getElementById("canvas"));
await pyodide.loadPackage([
'zengl-2.4.0-cp311-abi3-emscripten_3_1_45_wasm32.whl',
'zengl-2.4.0-cp311-abi3-emscripten_3_1_46_wasm32.whl',
]);
const main = await fetch('main.py');
pyodide.runPython(await main.text());
Expand Down

0 comments on commit 43bdc55

Please sign in to comment.