//python:features.bzl

Allows detecting of rules_python features that aren’t easily detected.

typedeffeatures

Information about features rules_python has implemented.

features.headers_abi3:bool

True if the@rules_python//python/cc:current_py_cc_headers_abi3target is available.

Added in version 1.7.0.

features.precompile:bool

True if the precompile attributes are available.

Added in version 0.33.0.

features.py_info_venv_symlinks

True if thePyInfo.venv_symlinks field is available.

Added in version 1.5.0.

features.uses_builtin_rules:bool

True if the rules are using the Bazel-builtin implementation.

Added in version 1.1.0.

features.version:str

The rules_python version. This is a semver format, e.g.X.Y.Z withoptional trailing-rcN. For unreleased versions, it is an empty string.

Added in version 0.38.0.