@@ -307,12 +307,6 @@ def _create_whl_repos(
307307 },
308308 extra_aliases = extra_aliases ,
309309 whl_libraries = whl_libraries ,
310- target_platforms = {
311- plat : None
312- for reqs in requirements_by_platform .values ()
313- for req in reqs
314- for plat in req .target_platforms
315- },
316310 )
317311
318312def _whl_repos (* , requirement , whl_library_args , download_only , netrc , auth_patterns , multiple_requirements_for_whl = False , python_version , enable_pipstar = False ):
@@ -545,7 +539,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
545539 hub_group_map = {}
546540 exposed_packages = {}
547541 extra_aliases = {}
548- target_platforms = {}
549542 whl_libraries = {}
550543
551544 for mod in module_ctx .modules :
@@ -629,7 +622,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
629622 for whl_name , aliases in out .extra_aliases .items ():
630623 extra_aliases [hub_name ].setdefault (whl_name , {}).update (aliases )
631624 exposed_packages .setdefault (hub_name , {}).update (out .exposed_packages )
632- target_platforms .setdefault (hub_name , {}).update (out .target_platforms )
633625 whl_libraries .update (out .whl_libraries )
634626
635627 # TODO @aignas 2024-04-05: how do we support different requirement
@@ -667,10 +659,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
667659 }
668660 for hub_name , extra_whl_aliases in extra_aliases .items ()
669661 },
670- target_platforms = {
671- hub_name : sorted (p )
672- for hub_name , p in target_platforms .items ()
673- },
674662 whl_libraries = {
675663 k : dict (sorted (args .items ()))
676664 for k , args in sorted (whl_libraries .items ())
@@ -762,14 +750,13 @@ def _pip_impl(module_ctx):
762750 },
763751 packages = mods .exposed_packages .get (hub_name , []),
764752 groups = mods .hub_group_map .get (hub_name ),
765- target_platforms = mods .target_platforms .get (hub_name , []),
766753 )
767754
768755 if bazel_features .external_deps .extension_metadata_has_reproducible :
769756 # NOTE @aignas 2025-04-15: this is set to be reproducible, because the
770757 # results after calling the PyPI index should be reproducible on each
771758 # machine.
772- return module_ctx .extension_metadata (reproducible = False )
759+ return module_ctx .extension_metadata (reproducible = True )
773760 else :
774761 return None
775762
0 commit comments