Skip to content

Commit

Permalink
Fix #28: Properly split URLs on space as well (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel authored Dec 4, 2023
1 parent 4c23821 commit b0c8515
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metaflow_extensions/netflix_ext/plugins/conda/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import errno
import json
import os
import re
import requests
import shutil
import socket
Expand Down Expand Up @@ -212,7 +213,9 @@ def default_pypi_sources(self) -> List[str]:
if have_index:
continue
have_index = True
sources.extend(map(lambda x: x.strip("'\""), value.splitlines()))
sources.extend(
map(lambda x: x.strip("'\""), re.split("\s+", value, re.M))
)
if not have_index:
sources = ["https://pypi.org/simple"] + sources[1:]
return sources
Expand Down

0 comments on commit b0c8515

Please sign in to comment.