Skip to content

Commit

Permalink
Upgrade Pyodide to 0.23.3 (#581)
Browse files Browse the repository at this point in the history
* Upgrade Pyodide to 0.23.3

* Fix pyodide-files.txt to catch up with the breaking changes on pyodide 0.23
  • Loading branch information
whitphx authored Jun 30, 2023
1 parent 87f8378 commit cd60562
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 114 deletions.
4 changes: 2 additions & 2 deletions packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"eject": "craco eject",
"start:electron": "tsc -p electron -w",
"build:electron": "tsc -p electron",
"build:pyodide": "curl -L https://github.com/pyodide/pyodide/releases/download/0.22.1/pyodide-core-0.22.1.tar.bz2 | tar xj -C ./build --files-from=./pyodide-files.txt",
"build:pyodide": "curl -L https://github.com/pyodide/pyodide/releases/download/0.23.3/pyodide-core-0.23.3.tar.bz2 | tar xj -C ./build --files-from=./pyodide-files.txt",
"build:bin": "./scripts/build_bin.js && sed -i'' -e '1 s/^#!.*$/#!\\/usr\\/bin\\/env node/' ./bin/*.js",
"typecheck": "yarn tsc --noEmit -p electron",
"start": "concurrently \"cross-env BROWSER=none yarn start:web\" \"wait-on http://localhost:3000 && yarn start:electron\" \"wait-on http://localhost:3000 && tsc -p electron && cross-env NODE_ENV=\"development\" electron .\"",
Expand Down Expand Up @@ -53,7 +53,7 @@
"dependencies": {
"fs-extra": "^10.1.0",
"node-fetch": "2",
"pyodide": "0.22.1",
"pyodide": "0.23.3",
"yargs": "^17.5.1"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/desktop/pyodide-files.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pyodide/pyodide.asm.data
pyodide/pyodide.asm.js
pyodide/pyodide.asm.wasm
pyodide/pyodide.js
pyodide/pyodide_py.tar
pyodide/python_stdlib.zip
pyodide/repodata.json
2 changes: 1 addition & 1 deletion packages/kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"eslint": "^8.33.0",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"pyodide": "0.22.1",
"pyodide": "0.23.3",
"typescript": "^4.9.4",
"vitest": "^0.21.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/kernel/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function loadPyodideAndPackages() {
console.debug("Import the entrypoint script.");
importScripts(
pyodideEntrypointUrl ??
"https://cdn.jsdelivr.net/pyodide/v0.22.1/full/pyodide.js"
"https://cdn.jsdelivr.net/pyodide/v0.23.3/full/pyodide.js"
);

console.debug("Loading Pyodide");
Expand Down
Loading

0 comments on commit cd60562

Please sign in to comment.