platform_build_soong/python
Cole Faust b09da7e863 Add imports property to py_library rules
This is to avoid having it hardcoded in a fork of the
py_library rule.

Most import attributes should just be set to ".", but
our previous solution always hardcoded it to ".." instead,
for ndkstubgen. ndkstubgen uses pkg_path: "ndkstubgen",
i.e., it set pkg_path to the name of the folder that
contained the Android.bp file. In this specific scenario,
imports = ".." works. Recreate that behavior here as well,
because we don't handle pkg_path properly yet.

Fixes: 233081071
Test: build/bazel/ci/bp2build.sh
Change-Id: Ib5e6a8edf428c74d4b5947f0ec53a2151001367a
2022-05-19 12:38:27 -07:00
..
scripts Change par file generate rules. 2021-04-19 08:08:34 +00:00
tests Mark par_test as not unit tests 2021-04-20 15:56:09 +00:00
Android.bp Add preparers for python 2021-03-17 23:56:29 +00:00
androidmk.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
binary.go Use one mutator for all bp2build conversion. 2021-12-14 09:37:45 -05:00
builder.go Change par file generate rules. 2021-04-19 08:08:34 +00:00
defaults.go Remove empty DepsMutator methods 2019-02-01 17:17:58 -08:00
installer.go Revert "Fix python_binary_host module in mixed build." 2021-11-03 09:07:26 +00:00
library.go Add imports property to py_library rules 2022-05-19 12:38:27 -07:00
proto.go Pass pctx and ctx to NewRuleBuilder 2020-12-01 16:22:16 -08:00
python.go Support building python pars against static or shared musl libc 2022-03-08 15:15:56 -08:00
python_test.go Remove usages of FixtureFactory from misc packages 2021-03-22 18:31:53 +00:00
test.go Revert "Fix python_binary_host module in mixed build." 2021-11-03 09:07:26 +00:00
testing.go Add preparers for python 2021-03-17 23:56:29 +00:00