File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ filegroup(
3131 name = "distribution" ,
3232 srcs = glob (["**" ]) + [
3333 "//python/private/api:distribution" ,
34+ "//python/private/cc:distribution" ,
3435 "//python/private/pypi:distribution" ,
3536 "//python/private/whl_filegroup:distribution" ,
3637 "//tools/build_defs/python/private:distribution" ,
Original file line number Diff line number Diff line change 1+ load ("@rules_cc//cc:cc_library.bzl" , "cc_library" )
2+ load ("//python/private:visibility.bzl" , "NOT_ACTUALLY_PUBLIC" )
3+
4+ package (
5+ default_visibility = ["//:__subpackages__" ],
6+ )
7+
8+ licenses (["notice" ])
9+
10+ filegroup (
11+ name = "distribution" ,
12+ srcs = glob (["**" ]),
13+ )
14+
15+ # An empty cc target for use when a cc target is needed to satisfy
16+ # Bazel, but its contents don't matter.
17+ cc_library (
18+ name = "empty" ,
19+ visibility = NOT_ACTUALLY_PUBLIC ,
20+ )
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ The {obj}`features.headers_abi3` attribute can be used to detect if this
8383attribute is available or not.
8484:::
8585""" ,
86+ default = "//python/private/cc:empty" ,
8687 providers = [CcInfo ],
8788 ),
8889 "libs" : attr .label (
Original file line number Diff line number Diff line change 1+ """Shared code for use with visibility specs."""
2+
3+ # Use when a target isn't actually public, but needs public
4+ # visibility to keep Bazel happy.
5+ # Such cases are typically for defaults of rule attributes or macro args that
6+ # get used outside of rules_python itself.
7+ NOT_ACTUALLY_PUBLIC = ["//visibility:public" ]
You can’t perform that action at this time.
0 commit comments