tools: update tools/v8 for Python 3.13

The `pipes` module was removed in Python 3.13 after being deprecated in
Python 3.11.

Also remove Python 2 compatibility shim as scripts require Python 3.

Assisted-by: IBM Bob
Signed-off-by: Richard Lau <richard.lau@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/66109
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Richard Lau authored and GitHub committed 2026-09-20 14:53:48 +00:00
1 parent 8f480a2df8
commit ea083346b6
2 files changed
+3 -8

No files matched your search

-3
View File
@@ -9,9 +9,6 @@ Use this script to fetch all dependencies for V8 to run build_gn.py.
Usage: fetch_deps.py <v8-path>
"""
# for py2/py3 compatibility
from __future__ import print_function
import os
import subprocess
import sys
+3 -5
View File
@@ -3,11 +3,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# for py2/py3 compatibility
from __future__ import print_function
import os
import pipes
import shlex
import shutil
import stat
import subprocess
@@ -29,8 +27,8 @@ def EnsureDepotTools(v8_path, fetch_if_not_exist):
print("Checking out depot_tools.")
# shell=True needed on Windows to resolve git.bat.
subprocess.check_call("git clone {} {}".format(
pipes.quote(DEPOT_TOOLS_URL),
pipes.quote(depot_tools)), shell=True)
shlex.quote(DEPOT_TOOLS_URL),
shlex.quote(depot_tools)), shell=True)
# Using check_output to hide warning messages.
subprocess.check_output(
[sys.executable, gclient_path, "metrics", "--opt-out"],