Skip to content

Commit 5327429

Browse files
committed
python: reexpose pyodide
1 parent 621c3c0 commit 5327429

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/python/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@primate/python",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Primate Python backend",
55
"homepage": "https://primatejs.com/modules/python",
66
"bugs": "https://github.com/primatejs/primate/issues",

packages/python/src/load.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { loadPyodide as default } from "pyodide";

packages/python/src/private/build.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const js_wrapper = async (path, routes, packages) => `
1616
import to_request from "@primate/python/to-request";
1717
import to_response from "@primate/python/to-response";
1818
import wrap from "@primate/python/wrap";
19-
import { loadPyodide as load } from "pyodide";
19+
import load from "@primate/python/load";
2020
2121
const pyodide = await load({ indexURL: "./node_modules/pyodide" });
2222
const python_route = await file(${JSON.stringify(path)}).text();

0 commit comments

Comments
 (0)