GeezerVison is showing github.com — build: remove Python 2 workaround · nodejs/node@afe1e00
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: configure.py +1-7Lines changed: 1 addition & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
14 | 14 | import bz2 |
15 | 15 | import io |
16 | 16 |
|
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 |
23 | 17 | from distutils.version import StrictVersion |
24 | 18 |
|
25 | 19 | # If not run from node/, cd to node/. |
@@ -1859,7 +1853,7 @@ def make_bin_override(): |
1859 | 1853 | # sys.executable. This directory will be prefixed to the PATH, so that |
1860 | 1854 | # other tools that shell out to `python` will use the appropriate python |
1861 | 1855 |
|
1862 | | - which_python = which('python') |
| 1856 | + which_python = shutil.which('python') |
1863 | 1857 | if (which_python and |
1864 | 1858 | os.path.realpath(which_python) == os.path.realpath(sys.executable)): |
1865 | 1859 | return |
|