Use python3 instead of python (python2 on skia roller)

This will result in a lot of Android.bp diffs because the order of dict
iteration used to be dependent on the hashing implementation in python2
and starting from python3.x it changed to be equivalent to OrderedDict,
remembering order in which keys were inserted.

The advantage of remembering key ordering instead of sorting
(which I previously attempted https://crrev.com/c/3863009 but had to
revert) is that 'name: {lib_name}' shows up first because that's what
the script adds first, which makes Android.bp slightly easier to read.

Bug: b/246559064
Change-Id: I7e4020fb9d3ca3842bc771b94b6628c285a2e4cd
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3907879
Reviewed-by: Amirali Abdolrashidi <[email protected]>
Commit-Queue: Roman Lavrov <[email protected]>
This commit is contained in:
Roman Lavrov authored and Angle LUCI CQ committed 2022-09-20 20:04:13 +00:00
1 parent b04a403b4d
commit 7353de2315
1 file changed
+1 -1
+1 -1
View File
@@ -90,7 +90,7 @@ function generate_Android_bp_file() {
gn desc ${GN_OUTPUT_DIRECTORY} --format=json "*" > ${GN_OUTPUT_DIRECTORY}/desc.$abi.json
done
python scripts/generate_android_bp.py \
python3 scripts/generate_android_bp.py \
${GN_OUTPUT_DIRECTORY}/desc.arm.json \
${GN_OUTPUT_DIRECTORY}/desc.arm64.json \
${GN_OUTPUT_DIRECTORY}/desc.x86.json \