|
1 | 1 | "Implementation for the py_binary and py_test rules."
|
2 | 2 |
|
3 |
| -load("@aspect_bazel_lib//lib:paths.bzl", "BASH_RLOCATION_FUNCTION", "to_manifest_path") |
| 3 | +load("@aspect_bazel_lib//lib:paths.bzl", "BASH_RLOCATION_FUNCTION", "to_rlocation_path") |
4 | 4 | load("@aspect_bazel_lib//lib:expand_make_vars.bzl", "expand_locations", "expand_variables")
|
5 | 5 | load("//py/private:py_library.bzl", _py_library = "py_library_utils")
|
6 | 6 | load("//py/private:providers.bzl", "PyWheelInfo")
|
@@ -32,16 +32,16 @@ def _py_binary_rule_imp(ctx):
|
32 | 32 | attribute_name = "env",
|
33 | 33 | )
|
34 | 34 |
|
35 |
| - python_interpreter_path = interpreter.python.path if interpreter.uses_interpreter_path else to_manifest_path(ctx, interpreter.python) |
| 35 | + python_interpreter_path = interpreter.python.path if interpreter.uses_interpreter_path else to_rlocation_path(ctx, interpreter.python) |
36 | 36 |
|
37 | 37 | common_substitutions = {
|
38 | 38 | "{{BASH_BIN}}": bash_bin,
|
39 | 39 | "{{BASH_RLOCATION_FN}}": BASH_RLOCATION_FUNCTION,
|
40 |
| - "{{BINARY_ENTRY_POINT}}": to_manifest_path(ctx, main), |
| 40 | + "{{BINARY_ENTRY_POINT}}": to_rlocation_path(ctx, main), |
41 | 41 | "{{INTERPRETER_FLAGS}}": " ".join(interpreter.flags),
|
42 | 42 | "{{PYTHON_INTERPRETER_PATH}}": python_interpreter_path,
|
43 | 43 | "{{RUN_BINARY_ENTRY_POINT}}": "true",
|
44 |
| - "{{VENV_SOURCE}}": to_manifest_path(ctx, venv_info.venv_directory), |
| 44 | + "{{VENV_SOURCE}}": to_rlocation_path(ctx, venv_info.venv_directory), |
45 | 45 | "{{VENV_NAME}}": "%s.venv" % ctx.attr.name,
|
46 | 46 | "{{PYTHON_ENV}}": "\n".join(dict_to_exports(env)).strip(),
|
47 | 47 | "{{PYTHON_ENV_UNSET}}": "\n".join(["unset %s" % k for k in env.keys()]).strip(),
|
|
0 commit comments