mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
tools: consistently use 'sys.executable' instead of 'python' (#2950)
This commit is contained in:
parent
2d20ac8319
commit
d936c49d53
3 changed files with 7 additions and 5 deletions
|
@ -16,7 +16,7 @@ eslint = os.path.join(third_party_path, "node_modules", "eslint", "bin",
|
||||||
|
|
||||||
os.chdir(root_path)
|
os.chdir(root_path)
|
||||||
run([
|
run([
|
||||||
"python", cpplint, "--filter=-build/include_subdir",
|
sys.executable, cpplint, "--filter=-build/include_subdir",
|
||||||
"--repository=core/libdeno", "--extensions=cc,h", "--recursive", "core"
|
"--repository=core/libdeno", "--extensions=cc,h", "--recursive", "core"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ from third_party import tp, google_env
|
||||||
|
|
||||||
def download_prebuilt(sha1_file):
|
def download_prebuilt(sha1_file):
|
||||||
run([
|
run([
|
||||||
"python",
|
sys.executable,
|
||||||
tp('depot_tools/download_from_google_storage.py'),
|
tp('depot_tools/download_from_google_storage.py'),
|
||||||
'--platform=' + sys.platform,
|
'--platform=' + sys.platform,
|
||||||
'--no_auth',
|
'--no_auth',
|
||||||
|
|
|
@ -198,7 +198,7 @@ def download_from_google_storage(item, bucket):
|
||||||
sha1_file = "v8/buildtools/linux64/%s.sha1" % item
|
sha1_file = "v8/buildtools/linux64/%s.sha1" % item
|
||||||
|
|
||||||
run([
|
run([
|
||||||
"python",
|
sys.executable,
|
||||||
tp('depot_tools/download_from_google_storage.py'),
|
tp('depot_tools/download_from_google_storage.py'),
|
||||||
'--platform=' + sys.platform,
|
'--platform=' + sys.platform,
|
||||||
'--no_auth',
|
'--no_auth',
|
||||||
|
@ -254,13 +254,15 @@ def download_clang_format():
|
||||||
|
|
||||||
# Download clang by calling the clang update script.
|
# Download clang by calling the clang update script.
|
||||||
def download_clang():
|
def download_clang():
|
||||||
run(['python', tp('v8/tools/clang/scripts/update.py')], env=google_env())
|
run([sys.executable,
|
||||||
|
tp('v8/tools/clang/scripts/update.py')],
|
||||||
|
env=google_env())
|
||||||
|
|
||||||
|
|
||||||
def maybe_download_sysroot():
|
def maybe_download_sysroot():
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
run([
|
run([
|
||||||
'python',
|
sys.executable,
|
||||||
os.path.join(root_path,
|
os.path.join(root_path,
|
||||||
'build/linux/sysroot_scripts/install-sysroot.py'),
|
'build/linux/sysroot_scripts/install-sysroot.py'),
|
||||||
'--arch=amd64'
|
'--arch=amd64'
|
||||||
|
|
Loading…
Reference in a new issue