nicholasjng / nanobind-bazel

Bazel defs and rules for building Python projects with nanobind extensions.
Apache License 2.0
6 stars 0 forks source link

Visibility is not propagated #29

Closed aaliddell closed 1 month ago

aaliddell commented 1 month ago

When setting visibility on a nanobind_extension target, the resulting .so is not visible as requested due to the native.alias indirection. The visibility kwarg needs to be passed to the alias (and also probably the copy_files too):

The alias rule has its own visibility declaration. In all other respects, it behaves like the rule it references (e.g. testonly on the alias is ignored; the testonly-ness of the referenced rule is used instead) with some minor exceptions:

nicholasjng commented 1 month ago

Thanks for the report - this should be fixed in #30.