Skip to content

Commit

Permalink
Migrate Python script invocations to Python 3 (#27832)
Browse files Browse the repository at this point in the history
Rolls buildroot to 3006780.
  • Loading branch information
cbracken authored Jul 30, 2021
1 parent 29f9df7 commit 6af4260
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ allowed_hosts = [
]

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

# Fuchsia compatibility
#
Expand Down Expand Up @@ -638,7 +638,7 @@ hooks = [
'name': 'landmines',
'pattern': '.',
'action': [
'python',
'python3',
'src/build/landmines.py',
],
},
Expand All @@ -647,15 +647,15 @@ hooks = [
'name': 'win_toolchain',
'condition': 'download_windows_deps',
'pattern': '.',
'action': ['python', 'src/build/vs_toolchain.py', 'update'],
'action': ['python3', 'src/build/vs_toolchain.py', 'update'],
},
{
# Ensure that we don't accidentally reference any .pyc files whose
# corresponding .py files have already been deleted.
'name': 'remove_stale_pyc_files',
'pattern': 'src/tools/.*\\.py',
'action': [
'python',
'python3',
'src/tools/remove_stale_pyc_files.py',
'src/tools',
],
Expand All @@ -665,7 +665,7 @@ hooks = [
'pattern': '.',
'condition': 'download_windows_deps',
'action': [
'python',
'python3',
'src/flutter/tools/dia_dll.py',
],
},
Expand All @@ -674,7 +674,7 @@ hooks = [
'pattern': '.',
'condition': 'download_linux_deps',
'action': [
'python',
'python3',
'src/build/linux/sysroot_scripts/install-sysroot.py',
'--arch=x64'],
},
Expand All @@ -683,15 +683,15 @@ hooks = [
'pattern': '.',
'condition': 'download_linux_deps',
'action': [
'python',
'python3',
'src/build/linux/sysroot_scripts/install-sysroot.py',
'--arch=arm64'],
},
{
'name': 'pub get --offline',
'pattern': '.',
'action': [
'python',
'python3',
'src/flutter/tools/pub_get_offline.py',
]
},
Expand Down
2 changes: 1 addition & 1 deletion tools/gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion tools/gn.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@call python "%~dp0gn" %*
@call python3 "%~dp0gn" %*

0 comments on commit 6af4260

Please sign in to comment.