summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2022-01-01 08:27:27 -0800
committerGitHub <noreply@github.com>2022-01-01 16:27:27 +0000
commit5999731d264af6bdcab633941b31a904dd310eb3 (patch)
tree3df2c51b4f9fdf10090c15d8b9833494a36bfebe /configure.py
parentd0c11765331edc457a3f5023c21cbe3f89fa6d17 (diff)
downloadnode-new-5999731d264af6bdcab633941b31a904dd310eb3.tar.gz
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: https://github.com/nodejs/node/pull/41357 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/configure.py b/configure.py
index 991da107f6..0156afdc4c 100755
--- a/configure.py
+++ b/configure.py
@@ -14,12 +14,6 @@ import shutil
import bz2
import io
-# Fallback to find_executable from distutils.spawn is a stopgap for
-# supporting V8 builds, which do not yet support Python 3.
-try:
- from shutil import which
-except ImportError:
- from distutils.spawn import find_executable as which
from distutils.version import StrictVersion
# If not run from node/, cd to node/.
@@ -1859,7 +1853,7 @@ def make_bin_override():
# sys.executable. This directory will be prefixed to the PATH, so that
# other tools that shell out to `python` will use the appropriate python
- which_python = which('python')
+ which_python = shutil.which('python')
if (which_python and
os.path.realpath(which_python) == os.path.realpath(sys.executable)):
return