@@ -165,6 +165,9 @@ if "%target%"=="Clean" echo deleting %~dp0deps\icu
165165if " %target% " == " Clean" rmdir /S /Q %~dp0 deps\icu
166166:no-depsicu
167167
168+ call tools\msvs\find_python.cmd
169+ if errorlevel 1 echo Could not find python2 & goto :exit
170+
168171call :getnodeversion || exit /b 1
169172
170173if defined TAG set configure_flags = %configure_flags% --tag=%TAG%
@@ -234,7 +237,8 @@ goto run
234237if defined noprojgen goto msbuild
235238
236239@ rem Generate the VS project.
237- call :run-python configure %configure_flags%
240+ echo configure %configure_flags%
241+ python configure %configure_flags%
238242if errorlevel 1 goto create-msvs-files-failed
239243if not exist node.sln goto create-msvs-files-failed
240244echo Project files generated.
@@ -426,7 +430,7 @@ if defined test_node_inspect goto node-test-inspect
426430goto node-tests
427431
428432:node-check-deopts
429- call : run- python tools\test.py --mode=release --check-deopts parallel sequential -J
433+ python tools\test.py --mode=release --check-deopts parallel sequential -J
430434if defined test_node_inspect goto node-test-inspect
431435goto node-tests
432436
@@ -450,7 +454,8 @@ if defined no_cctest echo Skipping cctest because no-cctest was specified && got
450454echo running 'cctest %cctest_args% '
451455" %config% \cctest" %cctest_args%
452456:run-test-py
453- call :run-python tools\test.py %test_args%
457+ echo running 'python tools\test.py %test_args% '
458+ python tools\test.py %test_args%
454459goto test-v8
455460
456461:test-v8
@@ -462,7 +467,7 @@ goto lint-cpp
462467:lint-cpp
463468if not defined lint_cpp goto lint-js
464469call :run-lint-cpp src\*.c src\*.cc src\*.h test\addons\*.cc test\addons\*.h test\addons-napi\*.cc test\addons-napi\*.h test\cctest\*.cc test\cctest\*.h test\gc\binding.cc tools\icu\*.cc tools\icu\*.h
465- call : run- python tools/check-imports.py
470+ python tools/check-imports.py
466471goto lint-js
467472
468473:run-lint-cpp
@@ -478,7 +483,7 @@ for /f "tokens=*" %%G in ('dir /b /s /a %*') do (
478483( endlocal
479484 set cppfilelist = %localcppfilelist%
480485)
481- call : run- python tools/cpplint.py %cppfilelist% > nul
486+ python tools/cpplint.py %cppfilelist% > nul
482487goto exit
483488
484489:add-to-list
@@ -540,14 +545,6 @@ echo vcbuild.bat lint : runs the C++ and JavaScript linter
540545echo vcbuild.bat no-cctest : skip building cctest.exe
541546goto exit
542547
543- :run-python
544- call tools\msvs\find_python.cmd
545- if errorlevel 1 echo Could not find python2 & goto :exit
546- set cmd1 = " %VCBUILD_PYTHON_LOCATION% " %*
547- echo %cmd1%
548- %cmd1%
549- exit /b %ERRORLEVEL%
550-
551548:exit
552549goto :EOF
553550
@@ -560,9 +557,8 @@ rem ***************
560557set NODE_VERSION =
561558set TAG =
562559set FULLVERSION =
563- :: Call as subroutine for validation of python
564- call :run-python tools\getnodeversion.py > nul
565- for /F " tokens=*" %%i in ('" %VCBUILD_PYTHON_LOCATION% " tools\getnodeversion.py') do set NODE_VERSION = %%i
560+
561+ for /F " usebackq tokens=*" %%i in (`python " %~dp0 tools\getnodeversion.py" `) do set NODE_VERSION = %%i
566562if not defined NODE_VERSION (
567563 echo Cannot determine current version of Node.js
568564 exit /b 1
0 commit comments