FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build,windows: Implement python detection by refack · Pull Request #13900 · nodejs/node · GitHub

/ node Public

build,windows: Implement python detection - #13900

Merged
refack merged 1 commit into
nodejs:masterfrom
refack:vcbuild-detect-python
Jun 28, 2017
Merged

build,windows: Implement python detection#13900
refack merged 1 commit into
nodejs:masterfrom
refack:vcbuild-detect-python

Conversation

refack commented Jun 24, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

According to PEP 514

Fixes: #13882

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

build,tools,windows

nodejs-github-bot added build Issues and PRs related to build files or the CI. 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 Jun 24, 2017
refack self-assigned this Jun 24, 2017

refack commented Jun 24, 2017

Copy link
Copy Markdown
Contributor Author

refack force-pushed the vcbuild-detect-python branch from 0a2c33e to 50bebc7 Compare June 24, 2017 20:42

refack commented Jun 24, 2017

Copy link
Copy Markdown
Contributor Author

New CI: https://ci.nodejs.org/job/node-compile-windows/10007/

/cc @nodejs/build @nodejs/platform-windows

Comment thread vcbuild.bat Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

subroutine

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ack.

refack force-pushed the vcbuild-detect-python branch from a3cbff7 to 5e8e829 Compare June 25, 2017 12:45

refack commented Jun 27, 2017

Copy link
Copy Markdown
Contributor Author

ping @nodejs/build @nodejs/platform-windows @nodejs/python @benjamingr @tniessen
Anyone wants to review

tniessen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM with the suggested changes. I think we should just deploy it and wait for people to complain about build problems, it is the only way to find out if there are any incompatibilities. It won't make things worse than they are as python will still be used if it is in the PATH.

Comment thread tools/msvs/find_python.cmd Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This prints error messages to my console before finding the correct key... Maybe add 2>&1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ack.

Comment thread tools/msvs/find_python.cmd Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

hold → holds?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ack.

refack commented Jun 27, 2017
edited
Loading

Copy link
Copy Markdown
Contributor Author

LGTM with the suggested changes. I think we should just deploy it and wait for people to complain about build problems, it is the only way to find out if there are any incompatibilities. It won't make things worse than they are as python will still be used if it is in the PATH.

Just an FYI, there are quite a few downstream builders, all sort of projects that build their own node.exe. Just one (not favorable) example — http://blog.sec-consult.com/2017/04/application-whitelisting-application.html
I agree this should only make things better, since first thing we look in the path (the current status quo)

PR-URL: nodejs#13900
Fixes: nodejs#13882
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
refack force-pushed the vcbuild-detect-python branch from 606d52b to 614dbbd Compare June 28, 2017 15:49
refack merged commit 614dbbd into nodejs:master Jun 28, 2017
refack deleted the vcbuild-detect-python branch June 28, 2017 15:51

refack commented Jun 28, 2017
edited
Loading

Copy link
Copy Markdown
Contributor Author

Comment thread vcbuild.bat
set FULLVERSION=%NODE_VERSION%-%TAG%

:exit
if not defined DISTTYPEDIR set DISTTYPEDIR=%DISTTYPE%

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@refack I was not able to do a careful review of this PR, but this line caught my eye. Is there a good reason for completely removing this? I believe this will completely break or release process, if DISTTYPEDIR is not set.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Confirmed this breaks. Will try a fix in the build script instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Woops. Opening a reversion PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

So I removed it because of :exit is redefined from L511
Fix PR #13969

refack mentioned this pull request Jun 28, 2017
2 tasks
addaleax pushed a commit that referenced this pull request Jun 29, 2017
PR-URL: #13900
Fixes: #13882
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
addaleax mentioned this pull request Jun 29, 2017
refack added a commit to refack/node that referenced this pull request Jun 30, 2017
* rename :exit to :distexit

PR-URL: nodejs#13969
Refs: nodejs#13900 (review)
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>

refack commented Jun 30, 2017

Copy link
Copy Markdown
Contributor Author

Land with #13969

addaleax pushed a commit to addaleax/node that referenced this pull request Jul 3, 2017
* rename :exit to :distexit

PR-URL: nodejs#13969
Refs: nodejs#13900 (review)
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
addaleax pushed a commit that referenced this pull request Jul 11, 2017
PR-URL: #13900
Fixes: #13882
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
addaleax pushed a commit that referenced this pull request Jul 11, 2017
* rename :exit to :distexit

PR-URL: #13969
Refs: #13900 (review)
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
addaleax pushed a commit that referenced this pull request Jul 18, 2017
PR-URL: #13900
Fixes: #13882
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
addaleax pushed a commit that referenced this pull request Jul 18, 2017
* rename :exit to :distexit

PR-URL: #13969
Refs: #13900 (review)
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>

Copy link
Copy Markdown
Contributor

Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if no let me know or add the dont-land-on label.

Please include all patches needed to make this atomic change work

refack added a commit to refack/node that referenced this pull request Aug 15, 2017
PR-URL: nodejs#13900
Fixes: nodejs#13882
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
refack added a commit to refack/node that referenced this pull request Aug 15, 2017
* rename :exit to :distexit

PR-URL: nodejs#13969
Refs: nodejs#13900 (review)
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>

refack commented Aug 15, 2017

Copy link
Copy Markdown
Contributor Author

Backport PR #14842

MylesBorins pushed a commit that referenced this pull request Aug 16, 2017
Backport-PR-URL: #14842
PR-URL: #13900
Fixes: #13882
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
MylesBorins pushed a commit that referenced this pull request Aug 16, 2017
* rename :exit to :distexit

Backport-PR-URL: #14842
PR-URL: #13969
Refs: #13900 (review)
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
MylesBorins mentioned this pull request Aug 16, 2017
MylesBorins pushed a commit that referenced this pull request Sep 5, 2017
Backport-PR-URL: #14842
PR-URL: #13900
Fixes: #13882
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
MylesBorins pushed a commit that referenced this pull request Sep 5, 2017
* rename :exit to :distexit

Backport-PR-URL: #14842
PR-URL: #13969
Refs: #13900 (review)
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
refack removed their assignment Oct 20, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. 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.

build,windows: vcbuild.bat should try to detect location of python.exe

7 participants


Back | FazBrowse Home | New Git URL