platform_build_soong/python
Cole Faust 8a038ed871 Make embedded_launcher true by default
embedded_launcher causes the python interpreter to be bundled in the
built zip file. This is beneficial because:

- You can export the built executable and run it on systems
  without python or an old version of python. The CI servers have python
  3.7, so it's useful to update that.
- Because the python version is known, the python sources will be
  precompiled.
- It will start running the code directly from the zip file, without
  extracting the binary to a temporary directory like non-embedded
  launcher binaries. This is particuarly useful because some developers
  use the extracted files directly instead of using
  `importlib.resources`, so having the non-extracting implementation
  gives them a nudge in the right direction.

Make embedded_launcher the default so that more developers will do the
right thing when developing python programs.

Bug: 331488610
Test: Presubmits
Change-Id: Ideb113a1d4d3b29ac04d57a48d111a99f77b2dfc
2024-03-26 17:32:48 -07:00
..
scripts Fix non-deterministic python compilation 2024-02-07 21:57:41 +00:00
tests Skip py2-cmd tests on Mac 2023-08-22 18:41:25 -04:00
Android.bp Remove ConvertWithBp2build implementations 2023-12-08 13:51:05 -08:00
binary.go Make embedded_launcher true by default 2024-03-26 17:32:48 -07: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 Make embedded_launcher true by default 2024-03-26 17:32:48 -07:00
python_test.go Precompile python sources 2023-01-27 15:43:38 -08:00
test.go Generate ATS 2.0 config for Mobly test. 2024-02-07 10:29:29 +08:00
testing.go Add preparers for python 2021-03-17 23:56:29 +00:00