From 67f4ca2c78d817f9b2256c013448b22245fb30ea Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Tue, 23 Jul 2024 18:20:16 +0800 Subject: [PATCH] Allow injecting kwargs to fetch during installing --- micropip/install.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/micropip/install.py b/micropip/install.py index 4183c86..c36c91b 100644 --- a/micropip/install.py +++ b/micropip/install.py @@ -20,6 +20,7 @@ async def install( index_urls: list[str] | str | None = None, *, verbose: bool | int = False, + **fetch_kwargs, ) -> None: """Install the given package and all of its dependencies. @@ -114,8 +115,6 @@ async def install( if isinstance(requirements, str): requirements = [requirements] - fetch_kwargs = dict() - if credentials: fetch_kwargs["credentials"] = credentials