diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-04-30 01:30:15 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-04-30 01:30:15 +0000 |
commit | 32101942596e819988e9ea7129b37ab6b3cc8e67 (patch) | |
tree | d2a0531f48b9574241399cfdfbbe87569c7ae5fe | |
parent | 29067ccadea1dbf6086d5dee4c15a720c0a61d72 (diff) | |
parent | baae083e6093649a7a641eab7a972b65048e531d (diff) | |
download | soong-32101942596e819988e9ea7129b37ab6b3cc8e67.tar.gz |
Merge "Compress precompiled python zips" into main
-rw-r--r-- | python/scripts/precompile_python.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/scripts/precompile_python.py b/python/scripts/precompile_python.py index 07b8fe97b..b3cf950d9 100644 --- a/python/scripts/precompile_python.py +++ b/python/scripts/precompile_python.py @@ -30,6 +30,7 @@ def process_one_file(name, infile, outzip): # Date was chosen to be the same as # https://cs.android.com/android/platform/superproject/main/+/main:build/soong/jar/jar.go;l=36;drc=2863e4535eb65e15f955dc8ed48fa99b1d2a1db5 info = zipfile.ZipInfo(filename=name, date_time=(2008, 1, 1, 0, 0, 0)) + info.compress_type = zipfile.ZIP_DEFLATED if not info.filename.endswith('.py'): outzip.writestr(info, infile.read()) |