Files
build_soong/python/Android.bp
Cole Faust 40c34500c4 Add binary properties to python_defaults and add modern_python_path_defaults
So that we can more easily enable these new flags on several
modules.

It seems you can still apply a python_defaults to a python_library
even with this change, so I didn't break it out into a separate
python_binary_defaults.

Bug: 245583294
Test: m py_dont_import_folder_of_entrypoint_test && out/host/linux-x86/testcases/py_dont_import_folder_of_entrypoint_test/x86_64/py_dont_import_folder_of_entrypoint_test
Change-Id: Iecf9c1845df4630bafdea9957eb2450c15f8596b
2022-09-26 12:05:03 -07:00

42 lines
935 B
Plaintext

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
bootstrap_go_package {
name: "soong-python",
pkgPath: "android/soong/python",
deps: [
"blueprint",
"soong-android",
"soong-tradefed",
],
srcs: [
"androidmk.go",
"binary.go",
"builder.go",
"defaults.go",
"installer.go",
"library.go",
"proto.go",
"python.go",
"test.go",
"testing.go",
],
testSrcs: [
"python_test.go",
],
pluginFor: ["soong_build"],
}
// We're transitioning all of these flags to be true by default.
// This is a defaults flag that can be used to easily add all of them to
// certain modules.
python_defaults {
name: "modern_python_path_defaults",
dont_add_top_level_directories_to_path: true,
dont_add_entrypoint_folder_to_path: true,
proto: {
respect_pkg_path: true,
},
}