Skip to content

Fix Python detection when depot_tools are in PATH in Windows - #22539

Closed
guybedford wants to merge 1 commit into
nodejs:masterfrom
guybedford:vcbuild
Closed

Fix Python detection when depot_tools are in PATH in Windows#22539
guybedford wants to merge 1 commit into
nodejs:masterfrom
guybedford:vcbuild

Conversation

@guybedford

@guybedfordguybedford commented Aug 26, 2018

Copy link
Copy Markdown
Contributor

This fixes the detection of Python for me in Windows.

The issue is I've installed "depot_tools" in path for building v8, and as a result "depot_tools/python.bat" is being found instead and that then causes Node to say it can't find Python.

It's probably only affecting my case, but that is good enough for a PR for me :)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added install Issues and PRs related to the installers. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform. labels Aug 26, 2018

@bzozbzoz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm: python.bat in PATH breaks vcbuild, this fixes it.

@BridgeAR

Copy link
Copy Markdown
Member

The commit message has to be fixed to adhere to the guidelines (e.g., adding build: ).

@nodejs/platform-windows @nodejs/build-files PTAL

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 31, 2018
@refack

Copy link
Copy Markdown
Contributor

@guybedford could you add a inline comment as to why the added .exe?

@addaleax

Copy link
Copy Markdown
Member

(This was notauthor-ready, it had been missing CI.)

CI: https://ci.nodejs.org/job/node-test-pull-request/16938/

@BridgeAR

Copy link
Copy Markdown
Member

@addaleax sorry, I missed to start the CI.

@addaleax

Copy link
Copy Markdown
Member

@guybedford You’ll need to rebase this to get rid of the CI failures here, sorry.

@addaleaxaddaleax removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 2, 2018
@jasnell

Copy link
Copy Markdown
Member

Ping @guybedford

@Trott

Copy link
Copy Markdown
Member

@TrottTrott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 21, 2018
@Trott

Copy link
Copy Markdown
Member

@Trott

Copy link
Copy Markdown
Member

Trott pushed a commit to Trott/io.js that referenced this pull request Nov 21, 2018
PR-URL: nodejs#22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@Trott

Copy link
Copy Markdown
Member

Landed in 1d3e40d

@TrottTrott closed this Nov 21, 2018
targos pushed a commit that referenced this pull request Nov 24, 2018
PR-URL: #22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
rvagg pushed a commit that referenced this pull request Nov 28, 2018
PR-URL: #22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@BridgeARBridgeAR mentioned this pull request Dec 5, 2018
4 tasks
codebytere pushed a commit that referenced this pull request Jan 13, 2019
PR-URL: #22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
refack pushed a commit to refack/node that referenced this pull request Jan 14, 2019
PR-URL: nodejs#22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
@codebyterecodebytere mentioned this pull request Jan 15, 2019
codebytere pushed a commit that referenced this pull request Jan 29, 2019
PR-URL: #22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
codebytere pushed a commit that referenced this pull request Jan 29, 2019
PR-URL: #22539
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.installIssues and PRs related to the installers.toolsIssues and PRs related to the tools directory.windowsIssues and PRs related to the Windows platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@guybedford@nodejs-github-bot@BridgeAR@refack@addaleax@jasnell@Trott@bzoz