Skip to content

Exposed python headers from toolchains as cc_library - #666

Merged
mattem merged 3 commits into
bazel-contrib:mainfrom
UebelAndre:headers
Mar 24, 2022
Merged

Exposed python headers from toolchains as cc_library#666
mattem merged 3 commits into
bazel-contrib:mainfrom
UebelAndre:headers

Conversation

@UebelAndre

@UebelAndre UebelAndre commented Mar 20, 2022

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Quite a few python packages have wheels that include C/C++ binaries built using python dev headers. Instead of needing to get these headers from an external source, it would be convenient to be able to get these straight from the toolchain.

Issue Number: N/A

What is the new behavior?

This change adds a py_headers cc_library target to toolchains that expose the python header files.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Comment thread python/repositories.bzl Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants