forked from bazel-contrib/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpy_executable_info.bzl
More file actions
35 lines (29 loc) · 950 Bytes
/
Copy pathpy_executable_info.bzl
File metadata and controls
35 lines (29 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""Implementation of PyExecutableInfo provider."""
PyExecutableInfo = provider(
doc = """
Information about an executable.
This provider is for executable-specific information (e.g. tests and binaries).
:::{versionadded} 0.36.0
:::
""",
fields = {
"interpreter_path": """
:type: None | str
Path to the Python interpreter to use for running the executable itself (not the
bootstrap script). Either an absolute path (which means it is
platform-specific), or a runfiles-relative path (which means the interpreter
should be within `runtime_files`)
""",
"main": """
:type: File
The user-level entry point file. Usually a `.py` file, but may also be `.pyc`
file if precompiling is enabled.
""",
"runfiles_without_exe": """
:type: runfiles
The runfiles the program needs, but without the original executable,
files only added to support the original executable, or files specific to the
original program.
""",
},
)