//python:py_executable_info.bzl

Provider for executable-specific information.

ThePyExecutableInfo provider contains information about an executable thatisn’t otherwise available from its public attributes or other providers.

It exposes information primarily useful for consumers to package the executable,or derive a new executable from the base binary.

providerPyExecutableInfo

Information about an executable.

This provider is for executable-specific information (e.g. tests and binaries).

Added in version 0.36.0.

PyExecutableInfo.<init>(build_data_file,interpreter_path,main,runfiles_without_exe)
PyExecutableInfo.build_data_file:None|File

A symlink to build_data.txt if stamping is enabled, otherwise None.

PyExecutableInfo.interpreter_path:None|str

Path to the Python interpreter to use for running the executable itself (not thebootstrap script). Either an absolute path (which means it isplatform-specific), or a runfiles-relative path (which means the interpretershould be withinruntime_files)

PyExecutableInfo.main:File

The user-level entry point file. Usually a.py file, but may also be.pycfile if precompiling is enabled.

PyExecutableInfo.runfiles_without_exe:runfiles

The runfiles the program needs, but without the original executable,files only added to support the original executable, or files specific to theoriginal program.