build: use python3 for electron hooks (#24435)

This commit is contained in:
Samuel Attard 2020-07-06 13:12:23 -07:00 committed by GitHub
parent cf74ee3d83
commit 2a3437e5b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
DEPS
View file

@ -124,7 +124,7 @@ hooks = [
'condition': '(checkout_chromium and apply_patches) and process_deps', 'condition': '(checkout_chromium and apply_patches) and process_deps',
'pattern': 'src/electron', 'pattern': 'src/electron',
'action': [ 'action': [
'python', 'python3',
'src/electron/script/apply_all_patches.py', 'src/electron/script/apply_all_patches.py',
'src/electron/patches/config.json', 'src/electron/patches/config.json',
], ],
@ -142,7 +142,7 @@ hooks = [
'name': 'electron_npm_deps', 'name': 'electron_npm_deps',
'pattern': 'src/electron/package.json', 'pattern': 'src/electron/package.json',
'action': [ 'action': [
'python', 'python3',
'-c', '-c',
'import os, subprocess; os.chdir(os.path.join("src", "electron")); subprocess.check_call(["python", "script/lib/npx.py", "yarn@' + (Var("yarn_version")) + '", "install", "--frozen-lockfile"]);', 'import os, subprocess; os.chdir(os.path.join("src", "electron")); subprocess.check_call(["python", "script/lib/npx.py", "yarn@' + (Var("yarn_version")) + '", "install", "--frozen-lockfile"]);',
], ],
@ -152,7 +152,7 @@ hooks = [
'pattern': 'src/electron', 'pattern': 'src/electron',
'condition': 'checkout_boto and process_deps', 'condition': 'checkout_boto and process_deps',
'action': [ 'action': [
'python', 'python3',
'-c', '-c',
'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "boto")); subprocess.check_call(["python", "setup.py", "build"]);', 'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "boto")); subprocess.check_call(["python", "setup.py", "build"]);',
], ],
@ -162,7 +162,7 @@ hooks = [
'pattern': 'src/electron', 'pattern': 'src/electron',
'condition': 'checkout_requests and process_deps', 'condition': 'checkout_requests and process_deps',
'action': [ 'action': [
'python', 'python3',
'-c', '-c',
'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "requests")); subprocess.check_call(["python", "setup.py", "build"]);', 'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "requests")); subprocess.check_call(["python", "setup.py", "build"]);',
], ],