Supported python build in host side.
The base module handles all the common functionalites, such as version
compatibilty check, version variations split, source file format check,
source/data file duplicate check.
The library/binary module focuses on how to generate binary build actions,
such as setting up stub script, zipping, filling in __init__.py in
runfiles dir tree.
Bug: b/31676493
Test: go test under python package
Change-Id: I06608369f350f7195873d459e1c8d1bdb811e77e
diff --git a/Android.bp b/Android.bp
index 61ef41e..e2fb864 100644
--- a/Android.bp
+++ b/Android.bp
@@ -209,6 +209,25 @@
pluginFor: ["soong_build"],
}
+bootstrap_go_package {
+ name: "soong-python",
+ pkgPath: "android/soong/python",
+ deps: [
+ "blueprint",
+ "soong-android",
+ ],
+ srcs: [
+ "python/binary.go",
+ "python/builder.go",
+ "python/library.go",
+ "python/python.go",
+ ],
+ testSrcs: [
+ "python/python_test.go",
+ ],
+ pluginFor: ["soong_build"],
+}
+
//
// Defaults to enable various configurations of host bionic
//