1616
1717load ("@bazel_features//:features.bzl" , "bazel_features" )
1818load ("@pythons_hub//:interpreters.bzl" , "INTERPRETER_LABELS" )
19- load ("@pythons_hub//:versions.bzl" , "MINOR_MAPPING" )
2019load ("//python/private:auth.bzl" , "AUTH_ATTRS" )
21- load ("//python/private:full_version.bzl" , "full_version" )
2220load ("//python/private:normalize_name.bzl" , "normalize_name" )
2321load ("//python/private:repo_utils.bzl" , "repo_utils" )
2422load ("//python/private:semver.bzl" , "semver" )
@@ -175,7 +173,6 @@ def _create_whl_repos(
175173 logger = logger ,
176174 )
177175
178- platforms = {}
179176 for whl_name , requirements in requirements_by_platform .items ():
180177 group_name = whl_group_mapping .get (whl_name )
181178 group_deps = requirement_cycles .get (group_name , [])
@@ -236,10 +233,6 @@ def _create_whl_repos(
236233 ))
237234
238235 whl_libraries [repo_name ] = args
239-
240- # TODO @aignas 2025-03-23: make this more efficient
241- for p in args .pop ("experimental_target_platforms" , []):
242- platforms [p ] = None
243236 whl_map .setdefault (whl_name , {})[config_setting ] = repo_name
244237
245238 return struct (
@@ -251,7 +244,6 @@ def _create_whl_repos(
251244 },
252245 extra_aliases = extra_aliases ,
253246 whl_libraries = whl_libraries ,
254- platforms = platforms ,
255247 )
256248
257249def _whl_repos (* , requirement , whl_library_args , download_only , netrc , auth_patterns , multiple_requirements_for_whl = False , python_version ):
@@ -416,7 +408,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
416408 exposed_packages = {}
417409 extra_aliases = {}
418410 whl_libraries = {}
419- platforms = {}
420411
421412 is_reproducible = True
422413
@@ -494,7 +485,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
494485 extra_aliases [hub_name ].setdefault (whl_name , {}).update (aliases )
495486 exposed_packages .setdefault (hub_name , {}).update (out .exposed_packages )
496487 whl_libraries .update (out .whl_libraries )
497- platforms .setdefault (hub_name , {}).update (out .platforms )
498488
499489 # TODO @aignas 2024-04-05: how do we support different requirement
500490 # cycles for different abis/oses? For now we will need the users to
@@ -531,17 +521,6 @@ You cannot use both the additive_build_content and additive_build_content_file a
531521 }
532522 for hub_name , extra_whl_aliases in extra_aliases .items ()
533523 },
534- platforms = {
535- hub_name : sorted (p )
536- for hub_name , p in platforms .items ()
537- },
538- python_versions = {
539- hub_name : sorted ({
540- full_version (version = v , minor_mapping = MINOR_MAPPING ): None
541- for v in m .python_versions
542- })
543- for hub_name , m in pip_hub_map .items ()
544- },
545524 whl_libraries = {
546525 k : dict (sorted (args .items ()))
547526 for k , args in sorted (whl_libraries .items ())
@@ -633,8 +612,6 @@ def _pip_impl(module_ctx):
633612 for key , values in whl_map .items ()
634613 },
635614 packages = mods .exposed_packages .get (hub_name , []),
636- python_versions = mods .python_versions [hub_name ],
637- platforms = mods .platforms .get (hub_name , ["host" ]),
638615 groups = mods .hub_group_map .get (hub_name ),
639616 )
640617
0 commit comments