GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: remove Python 2 workaround · nodejs/node@afe1e00

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • configure.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎configure.py‎

Copy file name to clipboardExpand all lines: configure.py
+1-7Lines 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/.
@@ -1859,7 +1853,7 @@ def make_bin_override():
18591853
# sys.executable. This directory will be prefixed to the PATH, so that
18601854
# other tools that shell out to `python` will use the appropriate python
18611855

1862-
which_python = which('python')
1856+
which_python = shutil.which('python')
18631857
if (which_python and
18641858
os.path.realpath(which_python) == os.path.realpath(sys.executable)):
18651859
return

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.