mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Migrate Python script invocations to Python 3 (flutter/engine#27832)
Rolls buildroot to 300678066c63df763a632943fac3eed0512684b3.
This commit is contained in:
parent
2fef40fc39
commit
61a2cbcda4
16
DEPS
16
DEPS
@ -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
|
||||
#
|
||||
@ -638,7 +638,7 @@ hooks = [
|
||||
'name': 'landmines',
|
||||
'pattern': '.',
|
||||
'action': [
|
||||
'python',
|
||||
'python3',
|
||||
'src/build/landmines.py',
|
||||
],
|
||||
},
|
||||
@ -647,7 +647,7 @@ 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
|
||||
@ -655,7 +655,7 @@ hooks = [
|
||||
'name': 'remove_stale_pyc_files',
|
||||
'pattern': 'src/tools/.*\\.py',
|
||||
'action': [
|
||||
'python',
|
||||
'python3',
|
||||
'src/tools/remove_stale_pyc_files.py',
|
||||
'src/tools',
|
||||
],
|
||||
@ -665,7 +665,7 @@ hooks = [
|
||||
'pattern': '.',
|
||||
'condition': 'download_windows_deps',
|
||||
'action': [
|
||||
'python',
|
||||
'python3',
|
||||
'src/flutter/tools/dia_dll.py',
|
||||
],
|
||||
},
|
||||
@ -674,7 +674,7 @@ hooks = [
|
||||
'pattern': '.',
|
||||
'condition': 'download_linux_deps',
|
||||
'action': [
|
||||
'python',
|
||||
'python3',
|
||||
'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||
'--arch=x64'],
|
||||
},
|
||||
@ -683,7 +683,7 @@ hooks = [
|
||||
'pattern': '.',
|
||||
'condition': 'download_linux_deps',
|
||||
'action': [
|
||||
'python',
|
||||
'python3',
|
||||
'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||
'--arch=arm64'],
|
||||
},
|
||||
@ -691,7 +691,7 @@ hooks = [
|
||||
'name': 'pub get --offline',
|
||||
'pattern': '.',
|
||||
'action': [
|
||||
'python',
|
||||
'python3',
|
||||
'src/flutter/tools/pub_get_offline.py',
|
||||
]
|
||||
},
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -1 +1 @@
|
||||
@call python "%~dp0gn" %*
|
||||
@call python3 "%~dp0gn" %*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user