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

@guybedford guybedford 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-bot nodejs-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

@bzoz bzoz 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

@BridgeAR BridgeAR 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

refack commented Aug 31, 2018

Copy link
Copy Markdown
Contributor

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

@addaleax

addaleax commented Sep 2, 2018

Copy link
Copy Markdown
Member

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

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

@BridgeAR

BridgeAR commented Sep 2, 2018

Copy link
Copy Markdown
Member

@addaleax sorry, I missed to start the CI.

@addaleax

addaleax commented Sep 2, 2018

Copy link
Copy Markdown
Member

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

@addaleax addaleax 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

jasnell commented Sep 10, 2018

Copy link
Copy Markdown
Member

Ping @guybedford

@Trott

Trott commented Nov 21, 2018

Copy link
Copy Markdown
Member

@Trott Trott 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

Trott commented Nov 21, 2018

Copy link
Copy Markdown
Member

@Trott

Trott commented Nov 21, 2018

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

Trott commented Nov 21, 2018

Copy link
Copy Markdown
Member

Landed in 1d3e40d

@Trott Trott 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>
@BridgeAR BridgeAR 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>
@codebytere codebytere 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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants