//python/cc
- //python/cc:current_py_cc_headers
A convenience target that provides the Python headers. It uses toolchainresolution to find the headers for the Python runtime matching the interpreterthat will be used. This basically forwards the underlying
cc_library(name="python_headers")target defined in the@python_X_Yrepo.This target provides:
CcInfo: The C++ information about the Python headers.
See also
The
:current_py_cc_headers_abi3target for explicitly using thestable ABI.
- //python/cc:current_py_cc_headers_abi3
A convenience target that provides the Python ABI3 headers (stable ABI headers).It uses toolchain resolution to find the headers for the Python runtime matchingthe interpreter that will be used. This basically forwards the underlying
cc_library(name="python_headers_abi3")target defined in the@python_X_Yrepo.This target provides:
CcInfo: The C++ information about the Python ABI3 headers.
Added in version 1.7.0:The
features.headers_abi3attribute can be used to detect if this targetis available or not.
- //python/cc:current_py_cc_libs
A convenience target that provides the Python libraries. It uses toolchainresolution to find the libraries for the Python runtime matching the interpreterthat will be used. This basically forwards the underlying
cc_library(name="libpython")target defined in the@python_X_Yrepo.This target provides:
CcInfo: The C++ information about the Python libraries.
- //python/cc:toolchain_type
Toolchain type identifier for the Python C toolchain.
This toolchain type is typically implemented by
py_cc_toolchain.See also
Custom toolchains for how to define custom toolchains