Skip to content

Commit 31ec6bb

Browse files
committed
add a better explanation
1 parent 13ae030 commit 31ec6bb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

python/private/pypi/parse_requirements.bzl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,14 @@ def _add_dists(*, requirement, index_urls, target_platform, logger = None):
426426

427427
if not target_platform:
428428
# The pipstar platforms are undefined here, so we cannot do any matching
429-
return sdist
429+
return sdist, True
430+
431+
if not whls and not sdist:
432+
# If there are no suitable wheels to handle for now allow fallback to pip, it
433+
# may be a little bit more helpful when debugging? Most likely something is
434+
# going a bit wrong here, should we raise an error because the sha256 have most
435+
# likely mismatched? We are already printing a warning above.
436+
return None, True
430437

431438
# Select a single wheel that can work on the target_platform
432439
return select_whl(

0 commit comments

Comments
 (0)