Skip to content

Commit

Permalink
python: reexpose pyodide
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Aug 10, 2024
1 parent 621c3c0 commit 5327429
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@primate/python",
"version": "0.1.3",
"version": "0.1.4",
"description": "Primate Python backend",
"homepage": "https://primatejs.com/modules/python",
"bugs": "https://github.com/primatejs/primate/issues",
Expand Down
1 change: 1 addition & 0 deletions packages/python/src/load.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { loadPyodide as default } from "pyodide";
2 changes: 1 addition & 1 deletion packages/python/src/private/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const js_wrapper = async (path, routes, packages) => `
import to_request from "@primate/python/to-request";
import to_response from "@primate/python/to-response";
import wrap from "@primate/python/wrap";
import { loadPyodide as load } from "pyodide";
import load from "@primate/python/load";
const pyodide = await load({ indexURL: "./node_modules/pyodide" });
const python_route = await file(${JSON.stringify(path)}).text();
Expand Down

0 comments on commit 5327429

Please sign in to comment.