Skip to content

Commit

Permalink
feat: add public entry point for PyCcLinkParamsInfo (#1128)
Browse files Browse the repository at this point in the history
This provides a public entry point for loading the underlying
`PyCcLinkParamsProvider` provider that is built into Bazel. This
provider isn't yet usable from Bazel, but adding a loadable way for it
to migrate off the built-in rules is the first step.

Work towards #1069
  • Loading branch information
rickeylev authored Mar 11, 2023
1 parent c0c08a3 commit 4e3d01c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ bzl_library(
deps = ["//python/private:reexports_bzl"],
)

bzl_library(
name = "py_cc_link_params_info_bzl",
srcs = ["py_cc_link_params_info.bzl"],
)

bzl_library(
name = "py_import_bzl",
srcs = ["py_import.bzl"],
Expand Down
3 changes: 3 additions & 0 deletions python/py_cc_link_params_info.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Public entry point for PyCcLinkParamsInfo."""

PyCcLinkParamsInfo = PyCcLinkParamsProvider
1 change: 1 addition & 0 deletions tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ build_test(
"//python:defs_bzl",
"//python:proto_bzl",
"//python:py_binary_bzl",
"//python:py_cc_link_params_info_bzl",
"//python:py_import_bzl",
"//python:py_info_bzl",
"//python:py_library_bzl",
Expand Down

0 comments on commit 4e3d01c

Please sign in to comment.