Uh oh!
There was an error while loading. Please reload this page.
build,win: fix python detection script to handle spaces in path - #14552
Conversation
jasongin
commented
Jul 31, 2017
refack
commented
Jul 31, 2017
Can you think of a good point for it to make noise? That is |
jasongin
commented
Jul 31, 2017
Well, there is already this code in call tools\msvs\find_python.cmd
iferrorlevel1echo Could not find python2 &goto :exitAnd then I would have expected that to be triggered by the second line here in %p%python.exe -V 2>&1 |findstr /R "^Python.2.*">NULIFERRORLEVEL1EXIT /B %ERRORLEVEL%However, when there is a space in the path, the script just dies at the findstr call there. I don't understand it, and I can't figure out any way to actually detect that error. |
refack
commented
Jul 31, 2017
Well... |
jasongin
commented
Aug 1, 2017
Landed in cee8d6d |
vcbuild.batsilently failed for me. I found the problem was the newfind_python.cmdscript failed to invokepython.exebecause mine was installed at "C:\Program Files\Python27". Adding quotes in a few places fixed it.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
build, win