android_build_soong/python
Spandan Das cb847638af Translate python_libray.pkg_path to proto.import_prefix
If a python_library uses a pkg_path foo/bar, then the proto srcs in
that libray need to import the dep .proto as foo/bar/proto.proto.

This behavior is restricted to python modules. To implement this is in
bp2build, this CL creates a new interface with a single method
`PkgPath`. Only python module structs implement this interface, and
this method is only available during bp2build

Test: Added a bp2build unit test
Test: TH

Change-Id: If8d207c0b321f75337a053795826b283a5eaaf46
2023-08-24 19:21:10 +00:00
..
scripts stub_template_host redirect SIGINT and SIGTERM to subprocess 2023-03-22 00:17:24 +00:00
tests Skip py2-cmd tests on Mac 2023-08-22 18:41:25 -04:00
Android.bp Precompile python sources 2023-01-27 15:43:38 -08:00
binary.go bp2build support for python_test(_host) 2023-04-13 16:10:59 -07:00
bp2build.go Handle proto.include_dirs in bp2build for py 2023-08-24 19:21:10 +00:00
builder.go Prepare soong for python 3.11 2023-08-16 21:47:03 -04:00
defaults.go Fix some issues in bp2build converter for python_binary_host. 2022-10-12 17:43:20 -07:00
library.go Refactor python rules 2023-01-25 10:40:59 -08:00
proto.go Use relative path instead of base for python proto 2023-08-15 18:33:00 +00:00
python.go Translate python_libray.pkg_path to proto.import_prefix 2023-08-24 19:21:10 +00:00
python_test.go Precompile python sources 2023-01-27 15:43:38 -08:00
test.go Add data_device_bins_both properties for python_test_host 2023-05-19 10:32:49 -07:00
testing.go Add preparers for python 2021-03-17 23:56:29 +00:00