Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document the current_py_cc_headers and libraries targets #1927

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/sphinx/api/python/cc/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
:::{bzl:currentfile} //python/cc:BUILD.bazel
:::
# //python/cc

:::{bzl:target} current_py_cc_headers

A convenience target that provides the Python headers. It uses toolchain
resolution to find the headers for the Python runtime matching the interpreter
that will be used. This basically forwards the underlying
`cc_library(name="python_headers")` target defined in the `@python_X_Y` repo.

This target provides:

* `CcInfo`: The C++ information about the Python headers.
:::

:::{bzl:target} current_py_cc_libs

A convenience target that provides the Python libraries. It uses toolchain
resolution to find the libraries for the Python runtime matching the interpreter
that will be used. This basically forwards the underlying
`cc_library(name="libpython")` target defined in the `@python_X_Y` repo.

This target provides:

* `CcInfo`: The C++ information about the Python libraries.
:::
Loading