mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
Lite: Fix the markdown-it package name spec on the Wasm worker (#4846)
* Fix the package name spec of markdown-it on the Wasm worker * Add changeset
This commit is contained in:
parent
f0150c6260
commit
76acf3cb0b
5
.changeset/spicy-fishes-taste.md
Normal file
5
.changeset/spicy-fishes-taste.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@gradio/lite": patch
|
||||
---
|
||||
|
||||
Fix the package name spec of markdown-it on the Wasm worker
|
@ -75,7 +75,7 @@ async function loadPyodideAndPackages(
|
||||
await micropip.add_mock_package("aiohttp", "3.8.4");
|
||||
await micropip.add_mock_package("multidict", "4.7.6");
|
||||
await pyodide.loadPackage(["ssl", "distutils", "setuptools"]);
|
||||
await micropip.install(["markdown-it-py~=2.2.0"]); // On 3rd June 2023, markdown-it-py 3.0.0 has been released. The `gradio` package depends on its `>=2.0.0` version so its 3.x will be resolved. However, it conflicts with `mdit-py-plugins`'s dependency `markdown-it-py >=1.0.0,<3.0.0` and micropip currently can't resolve it. So we explicitly install the compatible version of the library here.
|
||||
await micropip.install(["markdown-it-py[linkify]~=2.2.0"]); // On 3rd June 2023, markdown-it-py 3.0.0 has been released. The `gradio` package depends on its `>=2.0.0` version so its 3.x will be resolved. However, it conflicts with `mdit-py-plugins`'s dependency `markdown-it-py >=1.0.0,<3.0.0` and micropip currently can't resolve it. So we explicitly install the compatible version of the library here.
|
||||
await micropip.install.callKwargs(gradioWheelUrls, {
|
||||
keep_going: true
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user