Skip to content

Commit

Permalink
Copy index urls when setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed Sep 19, 2023
1 parent 29d057d commit df9cc45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion micropip/_commands/index_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ def set_index_urls(urls: list[str] | str) -> None:
if isinstance(urls, str):
urls = [urls]

package_index.INDEX_URLS = urls
package_index.INDEX_URLS = urls[:]
2 changes: 1 addition & 1 deletion micropip/_commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def install(
wheel_base = Path(getsitepackages()[0])

if index_urls is None:
index_urls = package_index.INDEX_URLS
index_urls = package_index.INDEX_URLS[:]

transaction = Transaction(
ctx=ctx,
Expand Down

0 comments on commit df9cc45

Please sign in to comment.