diff options
author | Krzysztof Kosiński <krzysio@google.com> | 2022-09-20 20:08:34 +0000 |
---|---|---|
committer | Krzysztof Kosiński <krzysio@google.com> | 2022-09-20 20:10:23 +0000 |
commit | 67a38f85dbb75e70b24f3ecf6d11e0d31afe35cf (patch) | |
tree | 70d5e78b0770bf0bf3670b8c007c28c0a6d4f06e | |
parent | 8b48d0a9faeb5ec683be44e91148e5839bf7a73c (diff) | |
download | httplib2-67a38f85dbb75e70b24f3ecf6d11e0d31afe35cf.tar.gz |
Revert "Disable unused Python 2 variant."
This reverts commit 8b48d0a9faeb5ec683be44e91148e5839bf7a73c.
Reason for revert: b/247828170
Change-Id: I266afa4dfc8c6b8b51a4f5db3142cb509bbeb061
-rw-r--r-- | Android.bp | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -56,10 +56,31 @@ filegroup { path: "python3/httplib2", } +filegroup { + name: "py2_httplib2_srcs", + srcs: ["python2/httplib2/*.py"], + path: "python2/httplib2", +} + +filegroup { + name: "py3_httplib2_srcs", + srcs: ["python3/httplib2/*.py"], + path: "python3/httplib2", +} + python_library { name: "py-httplib2", host_supported: true, data: [":cacert_data"], pkg_path: "httplib2", - srcs: ["python3/httplib2/*.py"], + version: { + py2: { + enabled: true, + srcs: [":py2_httplib2_srcs"], + }, + py3: { + enabled: true, + srcs: [":py3_httplib2_srcs"], + }, + }, } |