| 
16 | 16 | 
 
  | 
17 | 17 | load("@bazel_skylib//lib:sets.bzl", "sets")  | 
18 | 18 | load("//python/private:normalize_name.bzl", "normalize_name")  | 
19 |  | -load("//python/private:repo_utils.bzl", "REPO_DEBUG_ENV_VAR", "repo_utils")  | 
 | 19 | +load("//python/private:repo_utils.bzl", "REPO_DEBUG_ENV_VAR")  | 
20 | 20 | load("//python/private:text_util.bzl", "render")  | 
21 |  | -load(":evaluate_markers.bzl", "evaluate_markers_py")  | 
 | 21 | +load(":evaluate_markers.bzl", "evaluate_markers_py", EVALUATE_MARKERS_SRCS = "SRCS")  | 
22 | 22 | load(":parse_requirements.bzl", "host_platform", "parse_requirements", "select_requirement")  | 
23 | 23 | load(":pip_repository_attrs.bzl", "ATTRS")  | 
24 |  | -load(":pypi_repo_utils.bzl", "pypi_repo_utils")  | 
25 | 24 | load(":render_pkg_aliases.bzl", "render_pkg_aliases")  | 
26 | 25 | load(":requirements_files_by_platform.bzl", "requirements_files_by_platform")  | 
27 | 26 | 
 
  | 
@@ -72,7 +71,6 @@ exports_files(["requirements.bzl"])  | 
72 | 71 | """  | 
73 | 72 | 
 
  | 
74 | 73 | def _pip_repository_impl(rctx):  | 
75 |  | -    logger = repo_utils.logger(rctx)  | 
76 | 74 |     requirements_by_platform = parse_requirements(  | 
77 | 75 |         rctx,  | 
78 | 76 |         requirements_by_platform = requirements_files_by_platform(  | 
@@ -236,6 +234,13 @@ file](https://github.com/bazel-contrib/rules_python/blob/main/examples/pip_repos  | 
236 | 234 |         _template = attr.label(  | 
237 | 235 |             default = ":requirements.bzl.tmpl.workspace",  | 
238 | 236 |         ),  | 
 | 237 | +        _evaluate_markers_srcs = attr.label_list(  | 
 | 238 | +            default = EVALUATE_MARKERS_SRCS,  | 
 | 239 | +            doc = """\  | 
 | 240 | +The list of labels to use as SRCS for the marker evaluation code. This ensures that the  | 
 | 241 | +code will be re-evaluated when any of files in the default changes.  | 
 | 242 | +""",  | 
 | 243 | +        ),  | 
239 | 244 |         **ATTRS  | 
240 | 245 |     ),  | 
241 | 246 |     doc = """Accepts a locked/compiled requirements file and installs the dependencies listed within.  | 
 | 
0 commit comments