-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: fix windows build if python is a bat file #2594
Conversation
Invoking a bat file without stopping requires call
Hah, interesting. /cc @nodejs/platform-windows Are you saying that depot_tools is using Node's vcbuild.bat? What for? |
No I installed depot_tools in my PATH which uses a python.bat. |
I guess it's kind of harmless, but meh... a third party software installation has effed up, and now we have to work around it? :( Where does it stop---do we execute all executables with call? I've gotten around this in the place by placing depot_tools/python_bin in my path directly. |
The downside here seems to be that |
@domenic I would say python is a special case because of the history of hacks to handle multiple python versions and this change doesn't do any harm it simply makes it work for more people out-of-the-box and the overlap between depot_tools and node build users is most likely not low. @jbergstroem It works when invoked from powershell because it just executes |
I kind of agree with that statement. Would invoking python**.exe** explicitly in vcbuild.bat solve the issue? |
No. I don't know why there is such a resistance against this simple change.
It just works for more people out-of-the-box without any fiddling. |
I disagree. Creating that batch file is ok, but the moment you add it to the system path, it's bound to interfere with other software. The resistance, at least on my part, is because this is not a bug in Node. Even if we change those lines to use |
Well, I guess back to node.js policies. 🃏 |
Invoking a bat file without stopping requires
call
.depot_tools uses a bat file which triggered this error.