Skip to content

Commit b9bd20d

Browse files
authored
fix: Install full pkg requirement not just name (#194)
* fix: Install full pkg requirement not just name Fixes posit-dev/py-shinylive#45 * chore: update log message
1 parent e8fd46e commit b9bd20d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/usePyodide.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,8 @@ async def _install_requirements_from_dir(dir: str) -> None:
412412
extras.update({e.strip() for e in match_extras.group(2).split(",")})
413413
414414
if pkg_name not in micropip.list():
415-
print(f"Installing {pkg_name} ...")
416-
await micropip.install(pkg_name)
415+
print(f"Installing {req} ...")
416+
await micropip.install(req)
417417
418418
if len(extras) == 0:
419419
continue

0 commit comments

Comments
 (0)