Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6af4260

Browse files
authored
Migrate Python script invocations to Python 3 (#27832)
Rolls buildroot to 3006780.
1 parent 29f9df7 commit 6af4260

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

DEPS

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ allowed_hosts = [
9797
]
9898

9999
deps = {
100-
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'd28c48674b65936cf32063da51ef1445af82ac75',
100+
'src': 'https://github.com/flutter/buildroot.git' + '@' + '300678066c63df763a632943fac3eed0512684b3',
101101

102102
# Fuchsia compatibility
103103
#
@@ -638,7 +638,7 @@ hooks = [
638638
'name': 'landmines',
639639
'pattern': '.',
640640
'action': [
641-
'python',
641+
'python3',
642642
'src/build/landmines.py',
643643
],
644644
},
@@ -647,15 +647,15 @@ hooks = [
647647
'name': 'win_toolchain',
648648
'condition': 'download_windows_deps',
649649
'pattern': '.',
650-
'action': ['python', 'src/build/vs_toolchain.py', 'update'],
650+
'action': ['python3', 'src/build/vs_toolchain.py', 'update'],
651651
},
652652
{
653653
# Ensure that we don't accidentally reference any .pyc files whose
654654
# corresponding .py files have already been deleted.
655655
'name': 'remove_stale_pyc_files',
656656
'pattern': 'src/tools/.*\\.py',
657657
'action': [
658-
'python',
658+
'python3',
659659
'src/tools/remove_stale_pyc_files.py',
660660
'src/tools',
661661
],
@@ -665,7 +665,7 @@ hooks = [
665665
'pattern': '.',
666666
'condition': 'download_windows_deps',
667667
'action': [
668-
'python',
668+
'python3',
669669
'src/flutter/tools/dia_dll.py',
670670
],
671671
},
@@ -674,7 +674,7 @@ hooks = [
674674
'pattern': '.',
675675
'condition': 'download_linux_deps',
676676
'action': [
677-
'python',
677+
'python3',
678678
'src/build/linux/sysroot_scripts/install-sysroot.py',
679679
'--arch=x64'],
680680
},
@@ -683,15 +683,15 @@ hooks = [
683683
'pattern': '.',
684684
'condition': 'download_linux_deps',
685685
'action': [
686-
'python',
686+
'python3',
687687
'src/build/linux/sysroot_scripts/install-sysroot.py',
688688
'--arch=arm64'],
689689
},
690690
{
691691
'name': 'pub get --offline',
692692
'pattern': '.',
693693
'action': [
694-
'python',
694+
'python3',
695695
'src/flutter/tools/pub_get_offline.py',
696696
]
697697
},

tools/gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# Copyright 2013 The Flutter Authors. All rights reserved.
33
# Use of this source code is governed by a BSD-style license that can be
44
# found in the LICENSE file.

tools/gn.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@call python "%~dp0gn" %*
1+
@call python3 "%~dp0gn" %*

0 commit comments

Comments
 (0)