@@ -418,47 +418,6 @@ can be passed.
418418 """ ,
419419 default = {},
420420 ),
421- "extra_pip_args" : attr .string_list (
422- doc = "Extra arguments to pass on to pip. Must not contain spaces." ,
423- ),
424- "isolated" : attr .bool (
425- doc = """\
426- Whether or not to pass the [--isolated](https://pip.pypa.io/en/stable/cli/pip/#cmdoption-isolated) flag to
427- the underlying pip command. Alternatively, the `RULES_PYTHON_PIP_ISOLATED` environment variable can be used
428- to control this flag.
429- """ ,
430- default = True ,
431- ),
432- "pip_data_exclude" : attr .string_list (
433- doc = "Additional data exclusion parameters to add to the pip packages BUILD file." ,
434- ),
435- "python_interpreter" : attr .string (
436- doc = """\
437- The python interpreter to use. This can either be an absolute path or the name
438- of a binary found on the host's `PATH` environment variable. If no value is set
439- `python3` is defaulted for Unix systems and `python.exe` for Windows.
440- """ ,
441- # NOTE: This attribute should not have a default. See `_get_python_interpreter_attr`
442- # default = "python3"
443- ),
444- "python_interpreter_target" : attr .label (
445- allow_single_file = True ,
446- doc = """
447- If you are using a custom python interpreter built by another repository rule,
448- use this attribute to specify its BUILD target. This allows pip_repository to invoke
449- pip using the same interpreter as your toolchain. If set, takes precedence over
450- python_interpreter. An example value: "@python3_x86_64-unknown-linux-gnu//:python".
451- """ ,
452- ),
453- "quiet" : attr .bool (
454- default = True ,
455- doc = "If True, suppress printing stdout and stderr output to the terminal." ,
456- ),
457- "repo_prefix" : attr .string (
458- doc = """
459- Prefix for the generated packages will be of the form `@<prefix><sanitized-package-name>//...`
460- """ ,
461- ),
462421 "experimental_requirement_cycles" : attr .string_list_dict (
463422 default = {},
464423 doc = """\
@@ -513,6 +472,47 @@ Warning:
513472 If a dependency participates in multiple cycles, all of those cycles must be
514473 collapsed down to one. For instance `a <-> b` and `a <-> c` cannot be listed
515474 as two separate cycles.
475+ """ ,
476+ ),
477+ "extra_pip_args" : attr .string_list (
478+ doc = "Extra arguments to pass on to pip. Must not contain spaces." ,
479+ ),
480+ "isolated" : attr .bool (
481+ doc = """\
482+ Whether or not to pass the [--isolated](https://pip.pypa.io/en/stable/cli/pip/#cmdoption-isolated) flag to
483+ the underlying pip command. Alternatively, the `RULES_PYTHON_PIP_ISOLATED` environment variable can be used
484+ to control this flag.
485+ """ ,
486+ default = True ,
487+ ),
488+ "pip_data_exclude" : attr .string_list (
489+ doc = "Additional data exclusion parameters to add to the pip packages BUILD file." ,
490+ ),
491+ "python_interpreter" : attr .string (
492+ doc = """\
493+ The python interpreter to use. This can either be an absolute path or the name
494+ of a binary found on the host's `PATH` environment variable. If no value is set
495+ `python3` is defaulted for Unix systems and `python.exe` for Windows.
496+ """ ,
497+ # NOTE: This attribute should not have a default. See `_get_python_interpreter_attr`
498+ # default = "python3"
499+ ),
500+ "python_interpreter_target" : attr .label (
501+ allow_single_file = True ,
502+ doc = """
503+ If you are using a custom python interpreter built by another repository rule,
504+ use this attribute to specify its BUILD target. This allows pip_repository to invoke
505+ pip using the same interpreter as your toolchain. If set, takes precedence over
506+ python_interpreter. An example value: "@python3_x86_64-unknown-linux-gnu//:python".
507+ """ ,
508+ ),
509+ "quiet" : attr .bool (
510+ default = True ,
511+ doc = "If True, suppress printing stdout and stderr output to the terminal." ,
512+ ),
513+ "repo_prefix" : attr .string (
514+ doc = """
515+ Prefix for the generated packages will be of the form `@<prefix><sanitized-package-name>//...`
516516""" ,
517517 ),
518518 # 600 is documented as default here: https://docs.bazel.build/versions/master/skylark/lib/repository_ctx.html#execute
0 commit comments