Skip to content

Commit ee29882

Browse files
committed
fixup
1 parent 0b3b252 commit ee29882

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

python/private/pypi/hub_builder.bzl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,13 @@ def _pip_parse(self, module_ctx, pip_attr):
137137
return
138138

139139
default_cross_setup = _set_get_index_urls(self, pip_attr)
140-
target_platforms = pip_attr.target_platforms
141-
if default_cross_setup and not target_platforms:
142-
# TODO @aignas 2025-12-06: use target_platforms always even when the
143-
# get_index_urls is set.
144-
target_platforms = []
145-
elif not target_platforms:
146-
target_platforms = ["{os}_{arch}"]
147-
148140
self._platforms[python_version] = _platforms(
149141
module_ctx,
150142
python_version = full_python_version,
151143
config = self._config,
152-
target_platforms = target_platforms,
144+
# TODO @aignas 2025-12-09: flip or part to default to 'os_arch' after
145+
# VERSION_NEXT_FEATURE is released
146+
target_platforms = pip_attr.target_platforms or ([] if default_cross_setup else ["{os}_{arch}"]),
153147
)
154148
_add_group_map(self, pip_attr.experimental_requirement_cycles)
155149
_add_extra_aliases(self, pip_attr.extra_hub_aliases)

0 commit comments

Comments
 (0)