Files
MINGW-packages/mingw-w64-nodejs/0001-Fix-python-invocation-to-python2.patch
2017-06-26 07:01:35 +03:00

1147 lines
46 KiB
Diff

From 1ae864e84c7687fbe76bebbaf419a440d992a73b Mon Sep 17 00:00:00 2001
From: Alethea Rose <alethea@alethearose.com>
Date: Tue, 14 Feb 2017 20:56:17 -0500
Subject: [PATCH 01/11] Fix python invocation to python2
---
common.gypi | 2 +-
configure | 2 +-
deps/cares/build/gcc_version.py | 2 +-
deps/cares/common.gypi | 2 +-
deps/cares/gyp_cares | 2 +-
deps/uv/gyp_uv.py | 2 +-
deps/v8/DEPS | 16 +++++++--------
deps/v8/Makefile | 2 +-
deps/v8/Makefile.android | 2 +-
deps/v8/Makefile.nacl | 2 +-
deps/v8/build/coverage_wrapper.py | 2 +-
deps/v8/build/detect_v8_host_arch.py | 2 +-
deps/v8/build/download_gold_plugin.py | 4 ++--
deps/v8/build/get_landmines.py | 2 +-
deps/v8/build/gyp_v8 | 2 +-
deps/v8/build/has_valgrind.py | 2 +-
deps/v8/build/isolate.gypi | 2 +-
deps/v8/build/landmines.py | 2 +-
deps/v8/build/shim_headers.gypi | 2 +-
deps/v8/build/standalone.gypi | 4 ++--
deps/v8/build/toolchain.gypi | 2 +-
deps/v8/build/vs_toolchain.py | 2 +-
deps/v8/src/d8.gyp | 2 +-
deps/v8/tools/android-run.py | 2 +-
deps/v8/tools/concatenate-files.py | 2 +-
deps/v8/tools/disasm.py | 2 +-
deps/v8/tools/eval_gc_nvp.py | 2 +-
deps/v8/tools/external-reference-check.py | 2 +-
deps/v8/tools/find-commit-for-patch.py | 2 +-
deps/v8/tools/fuzz-harness.sh | 2 +-
deps/v8/tools/gc-nvp-to-csv.py | 2 +-
deps/v8/tools/gc-nvp-trace-processor.py | 2 +-
deps/v8/tools/gcmole/download_gcmole_tools.py | 2 +-
deps/v8/tools/gcmole/gcmole.lua | 2 +-
deps/v8/tools/gcmole/parallel.py | 2 +-
deps/v8/tools/gcmole/run-gcmole.py | 2 +-
deps/v8/tools/gen-postmortem-metadata.py | 2 +-
deps/v8/tools/generate-builtins-tests.py | 2 +-
.../generate_shim_headers/generate_shim_headers.py | 2 +-
deps/v8/tools/grokdump.py | 2 +-
deps/v8/tools/gyp/v8.gyp | 24 +++++++++++-----------
deps/v8/tools/isolate_driver.py | 2 +-
deps/v8/tools/js2c.py | 2 +-
deps/v8/tools/jsfunfuzz/download_jsfunfuzz.py | 2 +-
deps/v8/tools/jsfunfuzz/fuzz-harness.sh | 2 +-
deps/v8/tools/jsmin.py | 2 +-
deps/v8/tools/ll_prof.py | 2 +-
deps/v8/tools/mingw-generate-makefiles.sh | 2 +-
deps/v8/tools/nacl-run.py | 2 +-
deps/v8/tools/perf-to-html.py | 2 +-
deps/v8/tools/presubmit.py | 2 +-
deps/v8/tools/process-heap-prof.py | 2 +-
deps/v8/tools/release/auto_push.py | 2 +-
deps/v8/tools/release/auto_roll.py | 2 +-
deps/v8/tools/release/auto_tag.py | 2 +-
deps/v8/tools/release/check_clusterfuzz.py | 2 +-
deps/v8/tools/release/common_includes.py | 2 +-
deps/v8/tools/release/create_release.py | 2 +-
deps/v8/tools/release/git_recipes.py | 2 +-
deps/v8/tools/release/merge_to_branch.py | 2 +-
deps/v8/tools/release/mergeinfo.py | 2 +-
deps/v8/tools/release/push_to_candidates.py | 2 +-
deps/v8/tools/release/releases.py | 2 +-
deps/v8/tools/release/script_test.py | 2 +-
deps/v8/tools/release/search_related_commits.py | 2 +-
deps/v8/tools/release/test_scripts.py | 2 +-
.../tools/release/test_search_related_commits.py | 2 +-
deps/v8/tools/run-deopt-fuzzer.py | 2 +-
deps/v8/tools/run-valgrind.py | 2 +-
deps/v8/tools/run.py | 2 +-
deps/v8/tools/run_perf.py | 2 +-
deps/v8/tools/sanitizers/sancov_formatter.py | 2 +-
deps/v8/tools/sanitizers/sancov_merger.py | 2 +-
deps/v8/tools/sanitizers/sanitize_pcs.py | 2 +-
deps/v8/tools/stats-viewer.py | 2 +-
deps/v8/tools/test-server.py | 2 +-
deps/v8/tools/testrunner/local/pool.py | 2 +-
deps/v8/tools/testrunner/local/pool_unittest.py | 2 +-
deps/v8/tools/testrunner/server/daemon.py | 2 +-
deps/v8/tools/trace-maps-processor.py | 2 +-
deps/v8/tools/try_perf.py | 2 +-
deps/v8/tools/unittests/run_perf_test.py | 2 +-
deps/v8/tools/verify_source_deps.py | 2 +-
83 files changed, 103 insertions(+), 103 deletions(-)
diff --git a/common.gypi b/common.gypi
index af9c6ba..728ee67 100644
--- a/common.gypi
+++ b/common.gypi
@@ -9,7 +9,7 @@
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
'component%': 'static_library', # NB. these names match with what V8 expects
'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
- 'python%': 'python',
+ 'python%': 'python2',
'node_shared%': 'false',
'force_dynamic_crt%': 0,
diff --git a/configure b/configure
index 97b41ae..09f095e 100644
--- a/configure
+++ b/configure
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import sys
if sys.version_info[0] != 2 or sys.version_info[1] not in (6, 7):
diff --git a/deps/cares/build/gcc_version.py b/deps/cares/build/gcc_version.py
index da019e8..b4223af 100644
--- a/deps/cares/build/gcc_version.py
+++ b/deps/cares/build/gcc_version.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import os
import re
diff --git a/deps/cares/common.gypi b/deps/cares/common.gypi
index 609ad62..c187196 100644
--- a/deps/cares/common.gypi
+++ b/deps/cares/common.gypi
@@ -139,7 +139,7 @@
[ 'OS in "linux freebsd openbsd solaris android aix"', {
'variables': {
- 'gcc_version%': '<!(python build/gcc_version.py)>)'
+ 'gcc_version%': '<!(python2 build/gcc_version.py)>)'
},
'cflags': [ '-Wall' ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
diff --git a/deps/cares/gyp_cares b/deps/cares/gyp_cares
index d1f1640..ecd3f0a 100644
--- a/deps/cares/gyp_cares
+++ b/deps/cares/gyp_cares
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import glob
import platform
diff --git a/deps/uv/gyp_uv.py b/deps/uv/gyp_uv.py
index bd37d95..297059b 100644
--- a/deps/uv/gyp_uv.py
+++ b/deps/uv/gyp_uv.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import os
import platform
diff --git a/deps/v8/DEPS b/deps/v8/DEPS
index 0559523..15cb213 100644
--- a/deps/v8/DEPS
+++ b/deps/v8/DEPS
@@ -64,7 +64,7 @@ hooks = [
'name': 'landmines',
'pattern': '.',
'action': [
- 'python',
+ 'python2',
'v8/build/landmines.py',
],
},
@@ -106,7 +106,7 @@ hooks = [
'name': 'gcmole',
'pattern': '.',
'action': [
- 'python',
+ 'python2',
'v8/tools/gcmole/download_gcmole_tools.py',
],
},
@@ -114,7 +114,7 @@ hooks = [
'name': 'jsfunfuzz',
'pattern': '.',
'action': [
- 'python',
+ 'python2',
'v8/tools/jsfunfuzz/download_jsfunfuzz.py',
],
},
@@ -190,7 +190,7 @@ hooks = [
# Update the Windows toolchain if necessary.
'name': 'win_toolchain',
'pattern': '.',
- 'action': ['python', 'v8/build/vs_toolchain.py', 'update'],
+ 'action': ['python2', 'v8/build/vs_toolchain.py', 'update'],
},
# Pull binutils for linux, enabled debug fission for faster linking /
# debugging when used with clang on Ubuntu Precise.
@@ -199,7 +199,7 @@ hooks = [
'name': 'binutils',
'pattern': 'v8/third_party/binutils',
'action': [
- 'python',
+ 'python2',
'v8/third_party/binutils/download.py',
],
},
@@ -208,18 +208,18 @@ hooks = [
# Note: This must run before the clang update.
'name': 'gold_plugin',
'pattern': '.',
- 'action': ['python', 'v8/build/download_gold_plugin.py'],
+ 'action': ['python2', 'v8/build/download_gold_plugin.py'],
},
{
# Pull clang if needed or requested via GYP_DEFINES.
# Note: On Win, this should run after win_toolchain, as it may use it.
'name': 'clang',
'pattern': '.',
- 'action': ['python', 'v8/tools/clang/scripts/update.py', '--if-needed'],
+ 'action': ['python2', 'v8/tools/clang/scripts/update.py', '--if-needed'],
},
{
# A change to a .gyp, .gypi, or to GYP itself should run the generator.
"pattern": ".",
- "action": ["python", "v8/build/gyp_v8"],
+ "action": ["python2", "v8/build/gyp_v8"],
},
]
diff --git a/deps/v8/Makefile b/deps/v8/Makefile
index a0c08a6..66af786 100644
--- a/deps/v8/Makefile
+++ b/deps/v8/Makefile
@@ -311,7 +311,7 @@ $(ARCHES): $(addprefix $$@.,$(DEFAULT_MODES))
$(BUILDS): $(OUTDIR)/Makefile.$$@
@$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \
BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
- python -c "print \
+ python2 -c "print \
raw_input().replace('opt', '').capitalize()") \
builddir="$(shell pwd)/$(OUTDIR)/$@"
diff --git a/deps/v8/Makefile.android b/deps/v8/Makefile.android
index c49cb85..d1c9699 100644
--- a/deps/v8/Makefile.android
+++ b/deps/v8/Makefile.android
@@ -58,7 +58,7 @@ DEFINES += OS=android
$(ANDROID_BUILDS): $(OUTDIR)/Makefile.$$@
@$(MAKE) -C "$(OUTDIR)" -f Makefile.$@ \
BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
- python -c "print raw_input().capitalize()") \
+ python2 -c "print raw_input().capitalize()") \
builddir="$(shell pwd)/$(OUTDIR)/$@"
# Android GYP file generation targets.
diff --git a/deps/v8/Makefile.nacl b/deps/v8/Makefile.nacl
index 3459c42..bb7fc31 100644
--- a/deps/v8/Makefile.nacl
+++ b/deps/v8/Makefile.nacl
@@ -80,7 +80,7 @@ $(NACL_BUILDS): $(NACL_MAKEFILES)
LD="$(NACL_TOOLCHAIN)/bin/pnacl-ld" \
LINK=${NACL_LINK} \
BUILDTYPE=$(shell echo $(subst .,,$(suffix $@)) | \
- python -c "print raw_input().capitalize()") \
+ python2 -c "print raw_input().capitalize()") \
builddir="$(shell pwd)/$(OUTDIR)/$@"
# NACL GYP file generation targets.
diff --git a/deps/v8/build/coverage_wrapper.py b/deps/v8/build/coverage_wrapper.py
index 5b365d8..3fd6cfa 100644
--- a/deps/v8/build/coverage_wrapper.py
+++ b/deps/v8/build/coverage_wrapper.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/build/detect_v8_host_arch.py b/deps/v8/build/detect_v8_host_arch.py
index 89e8286..87ad379 100644
--- a/deps/v8/build/detect_v8_host_arch.py
+++ b/deps/v8/build/detect_v8_host_arch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/build/download_gold_plugin.py b/deps/v8/build/download_gold_plugin.py
index b8131fd..81e04e1 100644
--- a/deps/v8/build/download_gold_plugin.py
+++ b/deps/v8/build/download_gold_plugin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
@@ -70,7 +70,7 @@ def main():
# (currently aborts with exit code 1,
# https://github.com/GoogleCloudPlatform/gsutil/issues/289) or change the
# stdin->stderr redirect in update.py to do something else (crbug.com/494442).
- subprocess.check_call(['python', GSUTIL_PATH,
+ subprocess.check_call(['python2', GSUTIL_PATH,
'cp', remote_path, targz_name],
stderr=open('/dev/null', 'w'))
subprocess.check_call(['tar', 'xzf', targz_name])
diff --git a/deps/v8/build/get_landmines.py b/deps/v8/build/get_landmines.py
index 2bbf7a6..f1b7e9d 100644
--- a/deps/v8/build/get_landmines.py
+++ b/deps/v8/build/get_landmines.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/build/gyp_v8 b/deps/v8/build/gyp_v8
index 8813f2c..e8ea57c 100644
--- a/deps/v8/build/gyp_v8
+++ b/deps/v8/build/gyp_v8
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/build/has_valgrind.py b/deps/v8/build/has_valgrind.py
index 83a848d..cfb8605 100644
--- a/deps/v8/build/has_valgrind.py
+++ b/deps/v8/build/has_valgrind.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/build/isolate.gypi b/deps/v8/build/isolate.gypi
index 4cfbbfd..5698bde 100644
--- a/deps/v8/build/isolate.gypi
+++ b/deps/v8/build/isolate.gypi
@@ -52,7 +52,7 @@
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
],
'action': [
- 'python',
+ 'python2',
'<(DEPTH)/tools/isolate_driver.py',
'<(test_isolation_mode)',
'--isolated', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).isolated',
diff --git a/deps/v8/build/landmines.py b/deps/v8/build/landmines.py
index 97c6390..215d8c0 100644
--- a/deps/v8/build/landmines.py
+++ b/deps/v8/build/landmines.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/build/shim_headers.gypi b/deps/v8/build/shim_headers.gypi
index 940211c..7e21773 100644
--- a/deps/v8/build/shim_headers.gypi
+++ b/deps/v8/build/shim_headers.gypi
@@ -62,7 +62,7 @@
'outputs': [
'<!@pymod_do_main(generate_shim_headers <@(generator_args) --outputs)',
],
- 'action': ['python',
+ 'action': ['python2',
'<(generator_path)',
'<@(generator_args)',
'--generate',
diff --git a/deps/v8/build/standalone.gypi b/deps/v8/build/standalone.gypi
index a9123cb..1b0029a 100644
--- a/deps/v8/build/standalone.gypi
+++ b/deps/v8/build/standalone.gypi
@@ -67,7 +67,7 @@
},
'host_arch%': '<(host_arch)',
'target_arch%': '<(host_arch)',
- 'base_dir%': '<!(cd <(DEPTH) && python -c "import os; print os.getcwd()")',
+ 'base_dir%': '<!(cd <(DEPTH) && python2 -c "import os; print os.getcwd()")',
# Instrument for code coverage and use coverage wrapper to exclude some
# files. Uses gcov if clang=0 is set explicitly. Otherwise,
@@ -431,7 +431,7 @@
# (defines are passed via the command line, and build systems rebuild
# things when their commandline changes). Nothing should ever read this
# define.
- 'defines': ['CR_CLANG_REVISION=<!(python <(DEPTH)/tools/clang/scripts/update.py --print-revision)'],
+ 'defines': ['CR_CLANG_REVISION=<!(python2 <(DEPTH)/tools/clang/scripts/update.py --print-revision)'],
'conditions': [
['host_clang==1', {
'target_conditions': [
diff --git a/deps/v8/build/toolchain.gypi b/deps/v8/build/toolchain.gypi
index faecf8e..7738633 100644
--- a/deps/v8/build/toolchain.gypi
+++ b/deps/v8/build/toolchain.gypi
@@ -38,7 +38,7 @@
'ubsan%': 0,
'ubsan_vptr%': 0,
'v8_target_arch%': '<(target_arch)',
- 'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")',
+ 'v8_host_byteorder%': '<!(python2 -c "import sys; print sys.byteorder")',
# Native Client builds currently use the V8 ARM JIT and
# arm/simulator-arm.cc to defer the significant effort required
# for NaCl JIT support. The nacl_target_arch variable provides
diff --git a/deps/v8/build/vs_toolchain.py b/deps/v8/build/vs_toolchain.py
index 95fbcf4..6f9d68c 100644
--- a/deps/v8/build/vs_toolchain.py
+++ b/deps/v8/build/vs_toolchain.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/deps/v8/src/d8.gyp b/deps/v8/src/d8.gyp
index f249a78..7499d6d 100644
--- a/deps/v8/src/d8.gyp
+++ b/deps/v8/src/d8.gyp
@@ -130,7 +130,7 @@
'<(SHARED_INTERMEDIATE_DIR)/d8-js.cc',
],
'action': [
- 'python',
+ 'python2',
'../tools/js2c.py',
'<@(_outputs)',
'D8',
diff --git a/deps/v8/tools/android-run.py b/deps/v8/tools/android-run.py
index dc13598..edf2ae1 100644
--- a/deps/v8/tools/android-run.py
+++ b/deps/v8/tools/android-run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/concatenate-files.py b/deps/v8/tools/concatenate-files.py
index 86bdf56..1ad4bd0 100644
--- a/deps/v8/tools/concatenate-files.py
+++ b/deps/v8/tools/concatenate-files.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2014 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/disasm.py b/deps/v8/tools/disasm.py
index f409cb0..dec96b1 100644
--- a/deps/v8/tools/disasm.py
+++ b/deps/v8/tools/disasm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2011 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/eval_gc_nvp.py b/deps/v8/tools/eval_gc_nvp.py
index fcb6d8b..d4eb12f 100644
--- a/deps/v8/tools/eval_gc_nvp.py
+++ b/deps/v8/tools/eval_gc_nvp.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/deps/v8/tools/external-reference-check.py b/deps/v8/tools/external-reference-check.py
index be01dec..5924ae7 100644
--- a/deps/v8/tools/external-reference-check.py
+++ b/deps/v8/tools/external-reference-check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/find-commit-for-patch.py b/deps/v8/tools/find-commit-for-patch.py
index 657826c..a87b721 100644
--- a/deps/v8/tools/find-commit-for-patch.py
+++ b/deps/v8/tools/find-commit-for-patch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/fuzz-harness.sh b/deps/v8/tools/fuzz-harness.sh
index c874d01..1622908 100644
--- a/deps/v8/tools/fuzz-harness.sh
+++ b/deps/v8/tools/fuzz-harness.sh
@@ -88,7 +88,7 @@ EOF
fi
flags='--debug-code --expose-gc --verify-gc'
-python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \
+python2 -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \
"$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js"
exit_code=$(cat w* | grep " looking good" -c)
exit_code=$((100-exit_code))
diff --git a/deps/v8/tools/gc-nvp-to-csv.py b/deps/v8/tools/gc-nvp-to-csv.py
index 26ed8e1..616e2d0 100644
--- a/deps/v8/tools/gc-nvp-to-csv.py
+++ b/deps/v8/tools/gc-nvp-to-csv.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/deps/v8/tools/gc-nvp-trace-processor.py b/deps/v8/tools/gc-nvp-trace-processor.py
index 21526ae..1bc3426 100644
--- a/deps/v8/tools/gc-nvp-trace-processor.py
+++ b/deps/v8/tools/gc-nvp-trace-processor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2010 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/gcmole/download_gcmole_tools.py b/deps/v8/tools/gcmole/download_gcmole_tools.py
index 7183d28..ad0a841 100644
--- a/deps/v8/tools/gcmole/download_gcmole_tools.py
+++ b/deps/v8/tools/gcmole/download_gcmole_tools.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/gcmole/gcmole.lua b/deps/v8/tools/gcmole/gcmole.lua
index 82ea4e0..f2a53fd 100644
--- a/deps/v8/tools/gcmole/gcmole.lua
+++ b/deps/v8/tools/gcmole/gcmole.lua
@@ -170,7 +170,7 @@ function InvokeClangPluginForEachFile(filenames, cfg, func)
end
else
log("** Parallel execution.")
- local action = "python tools/gcmole/parallel.py \""
+ local action = "python2 tools/gcmole/parallel.py \""
.. cmd_line .. "\" " .. table.concat(filenames, " ")
if FLAGS.verbose then print('popen ', action) end
local pipe = io.popen(action)
diff --git a/deps/v8/tools/gcmole/parallel.py b/deps/v8/tools/gcmole/parallel.py
index 0c045f4..505ddab 100644
--- a/deps/v8/tools/gcmole/parallel.py
+++ b/deps/v8/tools/gcmole/parallel.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/gcmole/run-gcmole.py b/deps/v8/tools/gcmole/run-gcmole.py
index a1e4f24..aa23cfd 100644
--- a/deps/v8/tools/gcmole/run-gcmole.py
+++ b/deps/v8/tools/gcmole/run-gcmole.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/gen-postmortem-metadata.py b/deps/v8/tools/gen-postmortem-metadata.py
index a0afc06..dcdaf7a 100644
--- a/deps/v8/tools/gen-postmortem-metadata.py
+++ b/deps/v8/tools/gen-postmortem-metadata.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
diff --git a/deps/v8/tools/generate-builtins-tests.py b/deps/v8/tools/generate-builtins-tests.py
index 4e6961d..00dea5a 100644
--- a/deps/v8/tools/generate-builtins-tests.py
+++ b/deps/v8/tools/generate-builtins-tests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/generate_shim_headers/generate_shim_headers.py b/deps/v8/tools/generate_shim_headers/generate_shim_headers.py
index d0e6d06..127e768 100644
--- a/deps/v8/tools/generate_shim_headers/generate_shim_headers.py
+++ b/deps/v8/tools/generate_shim_headers/generate_shim_headers.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/grokdump.py b/deps/v8/tools/grokdump.py
index ab8f326..bf66e39 100644
--- a/deps/v8/tools/grokdump.py
+++ b/deps/v8/tools/grokdump.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/gyp/v8.gyp b/deps/v8/tools/gyp/v8.gyp
index b09fd1f..e1ba0b1 100644
--- a/deps/v8/tools/gyp/v8.gyp
+++ b/deps/v8/tools/gyp/v8.gyp
@@ -1985,14 +1985,14 @@
'<(PRODUCT_DIR)/natives_blob_host.bin',
],
'action': [
- 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host.bin'
+ 'python2', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host.bin'
],
}, {
'outputs': [
'<(PRODUCT_DIR)/natives_blob.bin',
],
'action': [
- 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
+ 'python2', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
],
}],
],
@@ -2001,7 +2001,7 @@
'<(PRODUCT_DIR)/natives_blob.bin',
],
'action': [
- 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
+ 'python2', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
],
}],
],
@@ -2098,7 +2098,7 @@
],
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/libraries.cc'],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
'CORE',
@@ -2115,7 +2115,7 @@
],
'outputs': ['<@(libraries_bin_file)'],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
'CORE',
@@ -2133,7 +2133,7 @@
],
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc'],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
'EXPERIMENTAL',
@@ -2148,7 +2148,7 @@
],
'outputs': ['<@(libraries_experimental_bin_file)'],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
'EXPERIMENTAL',
@@ -2165,7 +2165,7 @@
],
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc'],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
'EXTRAS',
@@ -2180,7 +2180,7 @@
],
'outputs': ['<@(libraries_extras_bin_file)'],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
'EXTRAS',
@@ -2199,7 +2199,7 @@
'<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
'EXPERIMENTAL_EXTRAS',
@@ -2214,7 +2214,7 @@
],
'outputs': ['<@(libraries_experimental_extras_bin_file)'],
'action': [
- 'python',
+ 'python2',
'../../tools/js2c.py',
'<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
'EXPERIMENTAL_EXTRAS',
@@ -2245,7 +2245,7 @@
'<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
],
'action': [
- 'python',
+ 'python2',
'../../tools/gen-postmortem-metadata.py',
'<@(_outputs)',
'<@(heapobject_files)'
diff --git a/deps/v8/tools/isolate_driver.py b/deps/v8/tools/isolate_driver.py
index d1b39b0..d38f73f 100644
--- a/deps/v8/tools/isolate_driver.py
+++ b/deps/v8/tools/isolate_driver.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/js2c.py b/deps/v8/tools/js2c.py
index d915133..8fb160d 100644
--- a/deps/v8/tools/js2c.py
+++ b/deps/v8/tools/js2c.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/jsfunfuzz/download_jsfunfuzz.py b/deps/v8/tools/jsfunfuzz/download_jsfunfuzz.py
index 19eff02..ad19b71 100644
--- a/deps/v8/tools/jsfunfuzz/download_jsfunfuzz.py
+++ b/deps/v8/tools/jsfunfuzz/download_jsfunfuzz.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/jsfunfuzz/fuzz-harness.sh b/deps/v8/tools/jsfunfuzz/fuzz-harness.sh
index 205a61b..4eacd86 100644
--- a/deps/v8/tools/jsfunfuzz/fuzz-harness.sh
+++ b/deps/v8/tools/jsfunfuzz/fuzz-harness.sh
@@ -66,7 +66,7 @@ EOF
fi
flags='--debug-code --expose-gc --verify-gc'
-python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \
+python2 -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \
"$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js"
exit_code=$(cat w* | grep " looking good" -c)
exit_code=$((100-exit_code))
diff --git a/deps/v8/tools/jsmin.py b/deps/v8/tools/jsmin.py
index 236f511..73b0129 100644
--- a/deps/v8/tools/jsmin.py
+++ b/deps/v8/tools/jsmin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/env python2
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/ll_prof.py b/deps/v8/tools/ll_prof.py
index ca2cb00..811b437 100644
--- a/deps/v8/tools/ll_prof.py
+++ b/deps/v8/tools/ll_prof.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/mingw-generate-makefiles.sh b/deps/v8/tools/mingw-generate-makefiles.sh
index 32af52d..241948d 100644
--- a/deps/v8/tools/mingw-generate-makefiles.sh
+++ b/deps/v8/tools/mingw-generate-makefiles.sh
@@ -28,7 +28,7 @@
# Monkey-patch GYP.
cat > build/gyp/gyp.mingw << EOF
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/deps/v8/tools/nacl-run.py b/deps/v8/tools/nacl-run.py
index 32055fe..edcc08f 100644
--- a/deps/v8/tools/nacl-run.py
+++ b/deps/v8/tools/nacl-run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/perf-to-html.py b/deps/v8/tools/perf-to-html.py
index 63faeb1..3a68c60 100644
--- a/deps/v8/tools/perf-to-html.py
+++ b/deps/v8/tools/perf-to-html.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/presubmit.py b/deps/v8/tools/presubmit.py
index dd3533b..5fbc677 100644
--- a/deps/v8/tools/presubmit.py
+++ b/deps/v8/tools/presubmit.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/process-heap-prof.py b/deps/v8/tools/process-heap-prof.py
index a26cbf1..c7a4e6e 100644
--- a/deps/v8/tools/process-heap-prof.py
+++ b/deps/v8/tools/process-heap-prof.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2009 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/release/auto_push.py b/deps/v8/tools/release/auto_push.py
index ca9e5e8..5b91dec 100644
--- a/deps/v8/tools/release/auto_push.py
+++ b/deps/v8/tools/release/auto_push.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/tools/release/auto_roll.py b/deps/v8/tools/release/auto_roll.py
index b71cac5..891b34a 100644
--- a/deps/v8/tools/release/auto_roll.py
+++ b/deps/v8/tools/release/auto_roll.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/release/auto_tag.py b/deps/v8/tools/release/auto_tag.py
index a52a028..b71c19c 100644
--- a/deps/v8/tools/release/auto_tag.py
+++ b/deps/v8/tools/release/auto_tag.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/release/check_clusterfuzz.py b/deps/v8/tools/release/check_clusterfuzz.py
index cd73051..ad4297d 100644
--- a/deps/v8/tools/release/check_clusterfuzz.py
+++ b/deps/v8/tools/release/check_clusterfuzz.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/release/common_includes.py b/deps/v8/tools/release/common_includes.py
index 5c03236..59c390e 100644
--- a/deps/v8/tools/release/common_includes.py
+++ b/deps/v8/tools/release/common_includes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/tools/release/create_release.py b/deps/v8/tools/release/create_release.py
index 7477ea1..8915f7f 100644
--- a/deps/v8/tools/release/create_release.py
+++ b/deps/v8/tools/release/create_release.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/release/git_recipes.py b/deps/v8/tools/release/git_recipes.py
index 89fd7c9..03bb62e 100644
--- a/deps/v8/tools/release/git_recipes.py
+++ b/deps/v8/tools/release/git_recipes.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/tools/release/merge_to_branch.py b/deps/v8/tools/release/merge_to_branch.py
index 699fe1b..ea72b4a 100644
--- a/deps/v8/tools/release/merge_to_branch.py
+++ b/deps/v8/tools/release/merge_to_branch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/tools/release/mergeinfo.py b/deps/v8/tools/release/mergeinfo.py
index 7f8b9cb..0035a83 100644
--- a/deps/v8/tools/release/mergeinfo.py
+++ b/deps/v8/tools/release/mergeinfo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/release/push_to_candidates.py b/deps/v8/tools/release/push_to_candidates.py
index 750794e..299771a 100644
--- a/deps/v8/tools/release/push_to_candidates.py
+++ b/deps/v8/tools/release/push_to_candidates.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/tools/release/releases.py b/deps/v8/tools/release/releases.py
index 7b659cc..61b2eec 100644
--- a/deps/v8/tools/release/releases.py
+++ b/deps/v8/tools/release/releases.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/release/script_test.py b/deps/v8/tools/release/script_test.py
index cbb2134..3d2adcf 100644
--- a/deps/v8/tools/release/script_test.py
+++ b/deps/v8/tools/release/script_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/tools/release/search_related_commits.py b/deps/v8/tools/release/search_related_commits.py
index d27aa56..bf016d1 100644
--- a/deps/v8/tools/release/search_related_commits.py
+++ b/deps/v8/tools/release/search_related_commits.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/release/test_scripts.py b/deps/v8/tools/release/test_scripts.py
index 05457c9..9844530 100644
--- a/deps/v8/tools/release/test_scripts.py
+++ b/deps/v8/tools/release/test_scripts.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
diff --git a/deps/v8/tools/release/test_search_related_commits.py b/deps/v8/tools/release/test_search_related_commits.py
index cf61236..3eca10e 100644
--- a/deps/v8/tools/release/test_search_related_commits.py
+++ b/deps/v8/tools/release/test_search_related_commits.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/run-deopt-fuzzer.py b/deps/v8/tools/run-deopt-fuzzer.py
index 970aa8e..e93e73d 100644
--- a/deps/v8/tools/run-deopt-fuzzer.py
+++ b/deps/v8/tools/run-deopt-fuzzer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/run-valgrind.py b/deps/v8/tools/run-valgrind.py
index e3f84f5..de78300 100644
--- a/deps/v8/tools/run-valgrind.py
+++ b/deps/v8/tools/run-valgrind.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2009 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/run.py b/deps/v8/tools/run.py
index 5a656e1..c6fc589 100644
--- a/deps/v8/tools/run.py
+++ b/deps/v8/tools/run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/run_perf.py b/deps/v8/tools/run_perf.py
index db4245f..aa48704 100644
--- a/deps/v8/tools/run_perf.py
+++ b/deps/v8/tools/run_perf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/sanitizers/sancov_formatter.py b/deps/v8/tools/sanitizers/sancov_formatter.py
index 4f3ea9e..5845fa1 100644
--- a/deps/v8/tools/sanitizers/sancov_formatter.py
+++ b/deps/v8/tools/sanitizers/sancov_formatter.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/sanitizers/sancov_merger.py b/deps/v8/tools/sanitizers/sancov_merger.py
index a4cfec1..347401e 100644
--- a/deps/v8/tools/sanitizers/sancov_merger.py
+++ b/deps/v8/tools/sanitizers/sancov_merger.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/sanitizers/sanitize_pcs.py b/deps/v8/tools/sanitizers/sanitize_pcs.py
index 47f2715..df58ff6 100644
--- a/deps/v8/tools/sanitizers/sanitize_pcs.py
+++ b/deps/v8/tools/sanitizers/sanitize_pcs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2016 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/stats-viewer.py b/deps/v8/tools/stats-viewer.py
index ab8e287..702151d 100644
--- a/deps/v8/tools/stats-viewer.py
+++ b/deps/v8/tools/stats-viewer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2008 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/test-server.py b/deps/v8/tools/test-server.py
index ab927de..a94b61a 100644
--- a/deps/v8/tools/test-server.py
+++ b/deps/v8/tools/test-server.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
diff --git a/deps/v8/tools/testrunner/local/pool.py b/deps/v8/tools/testrunner/local/pool.py
index 99996ee..4682378 100644
--- a/deps/v8/tools/testrunner/local/pool.py
+++ b/deps/v8/tools/testrunner/local/pool.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/testrunner/local/pool_unittest.py b/deps/v8/tools/testrunner/local/pool_unittest.py
index 335d20a..7e89d8b 100644
--- a/deps/v8/tools/testrunner/local/pool_unittest.py
+++ b/deps/v8/tools/testrunner/local/pool_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/testrunner/server/daemon.py b/deps/v8/tools/testrunner/server/daemon.py
index baa66fb..26a58c8 100644
--- a/deps/v8/tools/testrunner/server/daemon.py
+++ b/deps/v8/tools/testrunner/server/daemon.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# This code has been written by Sander Marechal and published at:
# http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
diff --git a/deps/v8/tools/trace-maps-processor.py b/deps/v8/tools/trace-maps-processor.py
index bf8c8a8..3397998 100644
--- a/deps/v8/tools/trace-maps-processor.py
+++ b/deps/v8/tools/trace-maps-processor.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/try_perf.py b/deps/v8/tools/try_perf.py
index fbd4036..0948dcf 100644
--- a/deps/v8/tools/try_perf.py
+++ b/deps/v8/tools/try_perf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/unittests/run_perf_test.py b/deps/v8/tools/unittests/run_perf_test.py
index 1a4d738..b0a576d 100644
--- a/deps/v8/tools/unittests/run_perf_test.py
+++ b/deps/v8/tools/unittests/run_perf_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/deps/v8/tools/verify_source_deps.py b/deps/v8/tools/verify_source_deps.py
index 50caace..7120d64 100644
--- a/deps/v8/tools/verify_source_deps.py
+++ b/deps/v8/tools/verify_source_deps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2015 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
--
2.13.0