@@ -275,12 +275,6 @@ def _create_whl_repos(
275275 },
276276 extra_aliases = extra_aliases ,
277277 whl_libraries = whl_libraries ,
278- target_platforms = {
279- plat : None
280- for reqs in requirements_by_platform .values ()
281- for req in reqs
282- for plat in req .target_platforms
283- },
284278 )
285279
286280def _whl_repos (* , requirement , whl_library_args , download_only , netrc , auth_patterns , multiple_requirements_for_whl = False , python_version , enable_pipstar = False ):
@@ -453,7 +447,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
453447 hub_group_map = {}
454448 exposed_packages = {}
455449 extra_aliases = {}
456- target_platforms = {}
457450 whl_libraries = {}
458451
459452 for mod in module_ctx .modules :
@@ -536,7 +529,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
536529 for whl_name , aliases in out .extra_aliases .items ():
537530 extra_aliases [hub_name ].setdefault (whl_name , {}).update (aliases )
538531 exposed_packages .setdefault (hub_name , {}).update (out .exposed_packages )
539- target_platforms .setdefault (hub_name , {}).update (out .target_platforms )
540532 whl_libraries .update (out .whl_libraries )
541533
542534 # TODO @aignas 2024-04-05: how do we support different requirement
@@ -574,10 +566,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
574566 }
575567 for hub_name , extra_whl_aliases in extra_aliases .items ()
576568 },
577- target_platforms = {
578- hub_name : sorted (p )
579- for hub_name , p in target_platforms .items ()
580- },
581569 whl_libraries = {
582570 k : dict (sorted (args .items ()))
583571 for k , args in sorted (whl_libraries .items ())
@@ -669,7 +657,6 @@ def _pip_impl(module_ctx):
669657 },
670658 packages = mods .exposed_packages .get (hub_name , []),
671659 groups = mods .hub_group_map .get (hub_name ),
672- target_platforms = mods .target_platforms .get (hub_name , []),
673660 )
674661
675662 if bazel_features .external_deps .extension_metadata_has_reproducible :
0 commit comments