File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- # We'd like to alias the runfiles target @bazel_tools//tools/python/runfiles.
16
- # However, we need its source file to exist in the runfiles tree under this
17
- # repo's name, so that it can be imported as
18
- #
19
- # from rules_python.python.runfiles import runfiles
20
- #
21
- # in user code. This requires either adding a symlink to runfiles or copying
22
- # the file with an action.
23
- #
24
- # Both solutions are made more difficult by the fact that runfiles.py is not
25
- # directly exported by its package. We could try to get a handle on its File
26
- # object by unpacking the runfiles target's providers, but this seems hacky
27
- # and is probably more effort than it's worth. Also, it's not trivial to copy
28
- # files in a cross-platform (i.e. Windows-friendly) way.
29
- #
30
- # So instead, we just vendor in runfiles.py here.
31
-
32
15
load ("//python:defs.bzl" , "py_library" )
33
16
34
17
filegroup (
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- ###############################################################################
16
- # Vendored in from bazelbuild/bazel (tools/python/runfiles/runfiles.py) at #
17
- # commit 6c60a8ec049b6b8540c473969dd7bd1dad46acb9 (2019-07-19). See #
18
- # //python/runfiles:BUILD for details. #
19
- ###############################################################################
20
-
21
15
"""Runfiles lookup library for Bazel-built Python binaries and tests.
22
16
23
17
USAGE:
You can’t perform that action at this time.
0 commit comments