build: use python3 for electron hooks (#24435)
This commit is contained in:
parent
cf74ee3d83
commit
2a3437e5b5
1 changed files with 4 additions and 4 deletions
8
DEPS
8
DEPS
|
@ -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"]);',
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue