aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/runfiles
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2018-02-05 05:24:34 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-05 05:25:54 -0800
commita610a2b77893ed9edd3038cffe803bce68f83a80 (patch)
treee24dddc2d457ffdb908b3326f05748876c9955ef /tools/runfiles
parent17830c25a816d67ba79e783acaa6a085b516bd43 (diff)
python,runfiles: runfiles library in @bazel_tools
Also update the Python stub script template to set $RUNFILES_MANIFEST_FILE or $RUNFILES_DIR so the runfiles library only needs to look for those. See https://github.com/bazelbuild/bazel/issues/4460 RELNOTES[NEW]: python,runfiles: You can now depend on `@bazel_tools//tools/runfiles:py-runfiles` to get a platform-independent runfiles library for Python. See DocString of https://github.com/bazelbuild/bazel/blob/master/src/tools/runfiles/runfiles.py for usage information. Change-Id: I4f68a11cb59f2782e5203e39fe60cc66b46023a2 PiperOrigin-RevId: 184515490
Diffstat (limited to 'tools/runfiles')
-rw-r--r--tools/runfiles/BUILD.tools5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/runfiles/BUILD.tools b/tools/runfiles/BUILD.tools
index d92852377b..c50d0f73d3 100644
--- a/tools/runfiles/BUILD.tools
+++ b/tools/runfiles/BUILD.tools
@@ -4,3 +4,8 @@ alias(
name = "java-runfiles",
actual = "//src/tools/runfiles/java/com/google/devtools/build/runfiles",
)
+
+py_library(
+ name = "py-runfiles",
+ srcs = ["runfiles.py"],
+)