Uh oh!
There was an error while loading. Please reload this page.
tools,win: fix find_python error - #22797
Conversation
richardlau
commented
Sep 10, 2018
cc @nodejs/platform-windows |
refack
commented
Sep 11, 2018
I did some local testing and found that b6e991d is required as well. |
kfarnung
commented
Sep 11, 2018
Oh, interesting, what was the symptom there? I only have Python 2.7 installed on this machine (but not in the PATH), so it's possible that I didn't run into that issue. |
refack
commented
Sep 11, 2018
I had both 3.7 & 2.7 (and none in the Path), and I found that the path is not propagated in the full DetailsP.S. Let me test it a little bit more... |
kfarnung
commented
Sep 11, 2018
I appreciate the help testing this out, I suspect this code doesn't get too much exercise. |
addaleax
commented
Sep 14, 2018
kfarnung
commented
Sep 14, 2018
I think my fix is good either way, AFAICT the script is completely broken without the fix (if you don't have python.exe in your path). @refack, did you get a chance to determine whether your fix was necessary? Any issues you've come across. I'm inclined to land this today as long as the CI looks good and there are no objections. We can tweak this further if people hit other issues. |
kfarnung
commented
Sep 14, 2018
Rebased and merged @refack's commits together. Will kick off a CI if Jenkins responds. |
kfarnung
commented
Sep 14, 2018
@refack, trying it out again today, it seems like your change causes my machine to not find Python at all. |
kfarnung
commented
Sep 17, 2018
kfarnung
commented
Sep 17, 2018
refack
commented
Sep 17, 2018
Ok. |
refack
commented
Sep 17, 2018
@kfarnung does the |
kfarnung
commented
Sep 17, 2018
I do use PowerShell most of the time, but both CMD and PowerShell exhibit the same behavior (that's fixed by my change). I have Python 2.7 installed in Here's the output of before (vcbuild_before.txt) and after (vcbuild_fixed.txt) my fix. |
Resumed Windows: https://ci.nodejs.org/job/node-test-commit-windows-fanned/20796/ |
refack
commented
Sep 17, 2018
That was wise, I see the edge case, you have 3.7 only in |
kfarnung
commented
Sep 17, 2018
I suspected that might be the case. Given that I have a clean CI now, would you be ok with my landing this PR? |
Sure, if it fixes your system, it's definatly an improvement. |
kfarnung
commented
Sep 17, 2018
Thanks! Just for reference, how do you have Python installed? Are they both under HKCU? |
Yes, but I hand roll my setup. I use P.S. |
kfarnung
commented
Sep 18, 2018
Landed in 988be43 |
On a machine without `python.exe` in the PATH the script was failing with: ```console > .\vcbuild.bat Looking for Python 2.x 2> was unexpected at this time. ``` Escaping the `>` seems to resolve it. PR-URL: #22797 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
On a machine without `python.exe` in the PATH the script was failing with: ```console > .\vcbuild.bat Looking for Python 2.x 2> was unexpected at this time. ``` Escaping the `>` seems to resolve it. PR-URL: #22797 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
On a machine without `python.exe` in the PATH the script was failing with: ```console > .\vcbuild.bat Looking for Python 2.x 2> was unexpected at this time. ``` Escaping the `>` seems to resolve it. PR-URL: #22797 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
On a machine without
python.exein the PATH the script was failingwith:
Escaping the
>seems to resolve it.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes