Skip to content

Commit ff48705

Browse files
Trottdanielleadams
authored andcommitted
build: remove Python 2 workaround
Remove workaround for Python 2. I confirmed that V8 build still works by running `./configure.py && make v8`. PR-URL: #41357 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Zijian Liu <[email protected]>
1 parent 66556b3 commit ff48705

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

configure.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
import bz2
1515
import io
1616

17-
# Fallback to find_executable from distutils.spawn is a stopgap for
18-
# supporting V8 builds, which do not yet support Python 3.
19-
try:
20-
from shutil import which
21-
except ImportError:
22-
from distutils.spawn import find_executable as which
2317
from distutils.version import StrictVersion
2418

2519
# If not run from node/, cd to node/.
@@ -1864,7 +1858,7 @@ def make_bin_override():
18641858
# sys.executable. This directory will be prefixed to the PATH, so that
18651859
# other tools that shell out to `python` will use the appropriate python
18661860

1867-
which_python = which('python')
1861+
which_python = shutil.which('python')
18681862
if (which_python and
18691863
os.path.realpath(which_python) == os.path.realpath(sys.executable)):
18701864
return

0 commit comments

Comments
 (0)