@@ -275,12 +275,6 @@ def _create_whl_repos(
275
275
},
276
276
extra_aliases = extra_aliases ,
277
277
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
- },
284
278
)
285
279
286
280
def _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
453
447
hub_group_map = {}
454
448
exposed_packages = {}
455
449
extra_aliases = {}
456
- target_platforms = {}
457
450
whl_libraries = {}
458
451
459
452
for mod in module_ctx .modules :
@@ -536,7 +529,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
536
529
for whl_name , aliases in out .extra_aliases .items ():
537
530
extra_aliases [hub_name ].setdefault (whl_name , {}).update (aliases )
538
531
exposed_packages .setdefault (hub_name , {}).update (out .exposed_packages )
539
- target_platforms .setdefault (hub_name , {}).update (out .target_platforms )
540
532
whl_libraries .update (out .whl_libraries )
541
533
542
534
# 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
574
566
}
575
567
for hub_name , extra_whl_aliases in extra_aliases .items ()
576
568
},
577
- target_platforms = {
578
- hub_name : sorted (p )
579
- for hub_name , p in target_platforms .items ()
580
- },
581
569
whl_libraries = {
582
570
k : dict (sorted (args .items ()))
583
571
for k , args in sorted (whl_libraries .items ())
@@ -669,7 +657,6 @@ def _pip_impl(module_ctx):
669
657
},
670
658
packages = mods .exposed_packages .get (hub_name , []),
671
659
groups = mods .hub_group_map .get (hub_name ),
672
- target_platforms = mods .target_platforms .get (hub_name , []),
673
660
)
674
661
675
662
if bazel_features .external_deps .extension_metadata_has_reproducible :
0 commit comments