@@ -20,7 +20,6 @@ load("@rules_python_internal//:rules_python_config.bzl", rp_config = "config")
2020load ("//python/private:auth.bzl" , "AUTH_ATTRS" )
2121load ("//python/private:normalize_name.bzl" , "normalize_name" )
2222load ("//python/private:repo_utils.bzl" , "repo_utils" )
23- load (":evaluate_markers.bzl" , EVALUATE_MARKERS_SRCS = "SRCS" )
2423load (":hub_builder.bzl" , "hub_builder" )
2524load (":hub_repository.bzl" , "hub_repository" , "whl_config_settings_to_json" )
2625load (":parse_whl_name.bzl" , "parse_whl_name" )
@@ -71,14 +70,11 @@ def _configure(config, *, override = False, **kwargs):
7170def build_config (
7271 * ,
7372 module_ctx ,
74- enable_pipstar ,
7573 enable_pipstar_extract ):
7674 """Parse 'configure' and 'default' extension tags
7775
7876 Args:
7977 module_ctx: {type}`module_ctx` module context.
80- enable_pipstar: {type}`bool` a flag to enable dropping Python dependency for
81- evaluation of the extension.
8278 enable_pipstar_extract: {type}`bool | None` a flag to also not pass Python
8379 interpreter to `whl_library` when possible.
8480
@@ -132,24 +128,20 @@ def build_config(
132128 name : _plat (** values )
133129 for name , values in defaults ["platforms" ].items ()
134130 },
135- enable_pipstar = enable_pipstar ,
136131 enable_pipstar_extract = enable_pipstar_extract ,
137132 )
138133
139134def parse_modules (
140135 module_ctx ,
141136 _fail = fail ,
142137 simpleapi_download = simpleapi_download ,
143- enable_pipstar = False ,
144138 enable_pipstar_extract = False ,
145139 ** kwargs ):
146140 """Implementation of parsing the tag classes for the extension and return a struct for registering repositories.
147141
148142 Args:
149143 module_ctx: {type}`module_ctx` module context.
150144 simpleapi_download: Used for testing overrides
151- enable_pipstar: {type}`bool` a flag to enable dropping Python dependency for
152- evaluation of the extension.
153145 enable_pipstar_extract: {type}`bool` a flag to enable dropping Python dependency for
154146 extracting wheels.
155147 _fail: {type}`function` the failure function, mainly for testing.
@@ -189,7 +181,7 @@ You cannot use both the additive_build_content and additive_build_content_file a
189181 srcs_exclude_glob = whl_mod .srcs_exclude_glob ,
190182 )
191183
192- config = build_config (module_ctx = module_ctx , enable_pipstar = enable_pipstar , enable_pipstar_extract = enable_pipstar_extract )
184+ config = build_config (module_ctx = module_ctx , enable_pipstar_extract = enable_pipstar_extract )
193185
194186 # TODO @aignas 2025-06-03: Merge override API with the builder?
195187 _overriden_whl_set = {}
@@ -377,8 +369,7 @@ def _pip_impl(module_ctx):
377369
378370 mods = parse_modules (
379371 module_ctx ,
380- enable_pipstar = rp_config .enable_pipstar ,
381- enable_pipstar_extract = rp_config .enable_pipstar and rp_config .bazel_8_or_later ,
372+ enable_pipstar_extract = rp_config .bazel_8_or_later ,
382373 )
383374
384375 # Build all of the wheel modifications if the tag class is called.
@@ -447,10 +438,6 @@ Supported keys:
447438* `platform_system`, defaults to a value inferred from the {attr}`os_name`.
448439* `platform_version`, defaults to `0`.
449440* `sys_platform`, defaults to a value inferred from the {attr}`os_name`.
450-
451- ::::{note}
452- This is only used if the {envvar}`RULES_PYTHON_ENABLE_PIPSTAR` is enabled.
453- ::::
454441""" ,
455442 ),
456443 "index_url" : attr .string (
@@ -716,13 +703,6 @@ a string `"{os}_{arch}"` as the value here. You could also use `"{os}_{arch}_fre
716703 doc = """\
717704 A dict of labels to wheel names that is typically generated by the whl_modifications.
718705The labels are JSON config files describing the modifications.
719- """ ,
720- ),
721- "_evaluate_markers_srcs" : attr .label_list (
722- default = EVALUATE_MARKERS_SRCS ,
723- doc = """\
724- The list of labels to use as SRCS for the marker evaluation code. This ensures that the
725- code will be re-evaluated when any of files in the default changes.
726706""" ,
727707 ),
728708 }, ** ATTRS )
0 commit comments