Skip to content

Commit 3844778

Browse files
committed
wip
1 parent b80b77e commit 3844778

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

python/private/pypi/hub_builder.bzl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,7 @@ def _set_get_index_urls(self, pip_attr):
395395
index_url = pip_attr.experimental_index_url,
396396
extra_index_urls = pip_attr.experimental_extra_index_urls or [],
397397
index_url_overrides = pip_attr.experimental_index_url_overrides or {},
398-
sources = [
399-
d
400-
for d in distributions
401-
if _use_downloader(self, python_version, d)
402-
] if type(distributions) == "list" else {
398+
sources = {
403399
d: versions
404400
for d, versions in distributions.items()
405401
if _use_downloader(self, python_version, d)

python/private/pypi/simpleapi_download.bzl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,7 @@ def simpleapi_download(
9393
found_on_index = {}
9494
warn_overrides = False
9595

96-
# Normalize the inputs
97-
if type(attr.sources) == "list":
98-
fail("TODO")
99-
else:
100-
input_sources = attr.sources
96+
input_sources = attr.sources
10197

10298
for i, index_url in enumerate(index_urls):
10399
if i != 0:

0 commit comments

Comments
 (0)