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
40 lines (33 loc) · 1.05 KB
/
py_executable_info.bzl
File metadata and controls
40 lines (33 loc) · 1.05 KB
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
36
37
38
39
40
"""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 = {
"build_data_file": """
:type: None | File
A symlink to build_data.txt if stamping is enabled, otherwise None.
""",
"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.
""",
},
)