Skip to content

Commit

Permalink
import micropip using pyimport
Browse files Browse the repository at this point in the history
  • Loading branch information
emarsden committed Nov 25, 2024
1 parent 8d66629 commit 5c2e12a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www-zola/static/js/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ const myPackages = [
"requests",
"/pssh-box-wasm/pyodide/construct-2.8.8-py2.py3-none-any.whl",
"https://files.pythonhosted.org/packages/41/9f/60f8a4c8e7767a8c34f5c42428662e03fa3e38ad18ba41fcc5370ee43263/pywidevine-1.8.0-py3-none-any.whl",
"https://files.pythonhosted.org/packages/aa/a2/27fea39af627c0ce5dbf6108bf969ea8f5fc9376d29f11282a80e3426f1d/pymp4-1.4.0-py3-none-any.whl"
"https://files.pythonhosted.org/packages/aa/a2/27fea39af627c0ce5dbf6108bf969ea8f5fc9376d29f11282a80e3426f1d/pymp4-1.4.0-py3-none-any.whl",
"micropip"
]
let pyodide = await loadPyodide({ packages: myPackages });
console.log("Pyodide + pywidevine loaded");
document.getElementById("loading").style.display = "none";
pyodide.setDebug(true);
micropip.install('pyplayready');
const micropip = pyodide.pyimport("micropip");
await micropip.install('pyplayready');
console.log("pyplayready library loaded");

const to_WVD=`
Expand Down

0 comments on commit 5c2e12a

Please sign in to comment.