Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build, tools, win: check if python is a executable program #36696

Closed
wants to merge 2 commits into from

Conversation

himself65
Copy link
Member

@himself65 himself65 commented Dec 30, 2020

Fixes: #36694

After Windows 10 version 1903, placeholder files named "python.exe" and "python3.exe" appear, not executable programs, and open the MS Store when running without parameters.

Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

before install python
image

after
image

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

@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 Dec 30, 2020
@himself65 himself65 changed the title build,win: check if python is a executable program build, tools, win: check if python is a executable program Dec 30, 2020
@PoojaDurgad PoojaDurgad added the build Issues and PRs related to build files or the CI. label Jan 1, 2021
tools/msvs/find_python.cmd Outdated Show resolved Hide resolved
@Trott
Copy link
Member

Trott commented Jan 9, 2021

@nodejs/platform-windows

@gengjiawen
Copy link
Member

run into this on a fresh windows. Why MS did this ...

@gengjiawen gengjiawen added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Nov 18, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 18, 2021
@nodejs-github-bot
Copy link
Collaborator

@himself65
Copy link
Member Author

run into this on a fresh windows. Why MS did this ...

Maybe they think that they're helping people to download the correct python🤔

himself65 and others added 2 commits November 19, 2021 11:58
After Windows 10 version 1903, placeholder files named "python.exe" and "python3.exe" appear, not executable programs, and open the MS Store when running without parameters.

Fixes: nodejs#36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update
Co-authored-by: Rich Trott <rtrott@gmail.com>
@himself65
Copy link
Member Author

rebasing

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@aduh95 aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 18, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 18, 2022
@nodejs-github-bot
Copy link
Collaborator

@gengjiawen gengjiawen added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 29, 2022
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 29, 2022
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/36696
✔  Done loading data for nodejs/node/pull/36696
----------------------------------- PR info ------------------------------------
Title      build, tools, win: check if python is a executable program (#36696)
Author     Himself65  (@Himself65)
Branch     Himself65:20201231-fix-find_python -> nodejs:master
Labels     windows, install, build, tools, author ready
Commits    2
 - build, tools, win: check if python is a executable program
 - fixup!
Committers 1
 - himself65 
PR-URL: https://github.com/nodejs/node/pull/36696
Fixes: https://github.com/nodejs/node/issues/36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update
Reviewed-By: Jiawen Geng 
Reviewed-By: James M Snell 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/36696
Fixes: https://github.com/nodejs/node/issues/36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update
Reviewed-By: Jiawen Geng 
Reviewed-By: James M Snell 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Wed, 30 Dec 2020 16:26:57 GMT
   ✔  Approvals: 2
   ✔  - Jiawen Geng (@gengjiawen): https://github.com/nodejs/node/pull/36696#pullrequestreview-809374093
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/36696#pullrequestreview-866765180
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2022-01-18T17:56:33Z: https://ci.nodejs.org/job/node-test-pull-request/42001/
- Querying data for job/node-test-pull-request/42001/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/master up to date...
From https://github.com/nodejs/node
 * branch                  master     -> FETCH_HEAD
✔  origin/master is now up-to-date
- Downloading patch for 36696
From https://github.com/nodejs/node
 * branch                  refs/pull/36696/merge -> FETCH_HEAD
✔  Fetched commits as d86dcaa631df..0b5251c46d5a
--------------------------------------------------------------------------------
Auto-merging tools/msvs/find_python.cmd
[master 1084527c28] build, tools, win: check if python is a executable program
 Author: himself65 
 Date: Thu Dec 31 00:23:40 2020 +0800
 1 file changed, 11 insertions(+)
Auto-merging tools/msvs/find_python.cmd
[master 03cf3a2011] fixup!
 Author: Himself65 
 Date: Sat Jan 9 18:34:00 2021 +0800
 1 file changed, 1 insertion(+), 1 deletion(-)
   ✔  Patches applied
There are 2 commits in the PR. Attempting autorebase.
Rebasing (2/4)

Executing: git node land --amend --yes
⚠ Found Fixes: #36694, skipping..
⚠ Found Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update, skipping..
--------------------------------- New Message ----------------------------------
build, tools, win: check if python is a executable program

After Windows 10 version 1903, placeholder files named "python.exe" and "python3.exe" appear, not executable programs, and open the MS Store when running without parameters.

Fixes: #36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

PR-URL: #36696
Reviewed-By: Jiawen Geng technicalcute@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 4a5825299c] build, tools, win: check if python is a executable program
Author: himself65 himself65@outlook.com
Date: Thu Dec 31 00:23:40 2020 +0800
1 file changed, 11 insertions(+)
Rebasing (3/4)
Rebasing (4/4)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fixup!

Co-authored-by: Rich Trott rtrott@gmail.com

PR-URL: #36696
Fixes: #36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update
Reviewed-By: Jiawen Geng technicalcute@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 1922acc4ac] fixup!
Author: Himself65 himself65@outlook.com
Date: Sat Jan 9 18:34:00 2021 +0800
1 file changed, 1 insertion(+), 1 deletion(-)

Successfully rebased and updated refs/heads/master.

ℹ Use --fixupAll option, squash the PR manually or land the PR from the command line.

https://github.com/nodejs/node/actions/runs/1764418351

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jan 29, 2022
@richardlau richardlau added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Jan 29, 2022
gengjiawen pushed a commit that referenced this pull request Jan 29, 2022
After Windows 10 version 1903, placeholder files named "python.exe"
and "python3.exe" appear, not executable programs, and open the
MS Store when running without parameters.

Fixes: #36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

PR-URL: #36696
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@gengjiawen
Copy link
Member

landed in 2818fa6

@gengjiawen gengjiawen closed this Jan 29, 2022
@gengjiawen gengjiawen removed commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jan 29, 2022
@gengjiawen
Copy link
Member

@richardlau Sorry missing the new labels. I have landed it manually using node-core-utils

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jan 29, 2022
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/36696
✔  Done loading data for nodejs/node/pull/36696
----------------------------------- PR info ------------------------------------
Title      build, tools, win: check if python is a executable program (#36696)
Author     Himself65  (@Himself65)
Branch     Himself65:20201231-fix-find_python -> nodejs:master
Labels     windows, install, build, tools, author ready
Commits    2
 - build, tools, win: check if python is a executable program
 - fixup!
Committers 1
 - himself65 
PR-URL: https://github.com/nodejs/node/pull/36696
Fixes: https://github.com/nodejs/node/issues/36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update
Reviewed-By: Jiawen Geng 
Reviewed-By: James M Snell 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/36696
Fixes: https://github.com/nodejs/node/issues/36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update
Reviewed-By: Jiawen Geng 
Reviewed-By: James M Snell 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Wed, 30 Dec 2020 16:26:57 GMT
   ✔  Approvals: 2
   ✔  - Jiawen Geng (@gengjiawen): https://github.com/nodejs/node/pull/36696#pullrequestreview-809374093
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/36696#pullrequestreview-866765180
   ⚠  This PR was closed on Sat, 29 Jan 2022 01:40:15 GMT
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2022-01-29T01:20:39Z: https://ci.nodejs.org/job/node-test-pull-request/42001/
- Querying data for job/node-test-pull-request/42001/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1764466725

@himself65 himself65 deleted the 20201231-fix-find_python branch January 30, 2022 20:16
Linkgoron pushed a commit to Linkgoron/node that referenced this pull request Jan 31, 2022
After Windows 10 version 1903, placeholder files named "python.exe"
and "python3.exe" appear, not executable programs, and open the
MS Store when running without parameters.

Fixes: nodejs#36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

PR-URL: nodejs#36696
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
ruyadorno pushed a commit that referenced this pull request Feb 8, 2022
After Windows 10 version 1903, placeholder files named "python.exe"
and "python3.exe" appear, not executable programs, and open the
MS Store when running without parameters.

Fixes: #36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

PR-URL: #36696
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Mar 2, 2022
After Windows 10 version 1903, placeholder files named "python.exe"
and "python3.exe" appear, not executable programs, and open the
MS Store when running without parameters.

Fixes: #36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

PR-URL: #36696
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Mar 3, 2022
After Windows 10 version 1903, placeholder files named "python.exe"
and "python3.exe" appear, not executable programs, and open the
MS Store when running without parameters.

Fixes: #36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

PR-URL: #36696
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Mar 14, 2022
After Windows 10 version 1903, placeholder files named "python.exe"
and "python3.exe" appear, not executable programs, and open the
MS Store when running without parameters.

Fixes: #36694
Refs: https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update

PR-URL: #36696
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: James M Snell <jasnell@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. build Issues and PRs related to build files or the CI. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. 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 log incorrect when not installed python on Windows10
8 participants