Skip to content

Commit 58c86d5

Browse files
committed
fix a bug
1 parent 84955b5 commit 58c86d5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

python/private/pypi/parse_requirements.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,7 @@ def parse_requirements(
251251
for p in target_platforms:
252252
requirement_target_platforms[p] = None
253253

254-
# TODO @aignas 2024-07-15: the `is_exposed` logic here is wrong at the
255-
# moment, have to think of a good way to get the value.
256-
is_exposed = len(requirement_target_platforms) == len(requirements_by_platform)
254+
is_exposed = len(requirement_target_platforms) == len(requirements)
257255
if not is_exposed and logger:
258256
logger.debug(lambda: "Package '{}' will not be exposed because it is only present on a subset of platforms: {} out of {}".format(
259257
whl_name,

0 commit comments

Comments
 (0)