• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!-- Generated with Stardoc: http://skydoc.bazel.build -->
2
3Implementation of py_cc_toolchain rule.
4
5NOTE: This is a beta-quality feature. APIs subject to change until
6https://github.com/bazelbuild/rules_python/issues/824 is considered done.
7
8
9<a id="py_cc_toolchain"></a>
10
11## py_cc_toolchain
12
13<pre>
14py_cc_toolchain(<a href="#py_cc_toolchain-name">name</a>, <a href="#py_cc_toolchain-headers">headers</a>, <a href="#py_cc_toolchain-python_version">python_version</a>)
15</pre>
16
17A toolchain for a Python runtime's C/C++ information (e.g. headers)
18
19This rule carries information about the C/C++ side of a Python runtime, e.g.
20headers, shared libraries, etc.
21
22
23**ATTRIBUTES**
24
25
26| Name  | Description | Type | Mandatory | Default |
27| :------------- | :------------- | :------------- | :------------- | :------------- |
28| <a id="py_cc_toolchain-name"></a>name |  A unique name for this target.   | <a href="https://bazel.build/concepts/labels#target-names">Name</a> | required |  |
29| <a id="py_cc_toolchain-headers"></a>headers |  Target that provides the Python headers. Typically this is a cc_library target.   | <a href="https://bazel.build/concepts/labels">Label</a> | required |  |
30| <a id="py_cc_toolchain-python_version"></a>python_version |  The Major.minor Python version, e.g. 3.11   | String | required |  |
31
32
33