win-install-dependencies.cmd 735 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. setlocal ENABLEDELAYEDEXPANSION
  3. set PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\SYSTEM32
  4. for /D %%f in ( "C:\PYTHON*" ) do set PATH=!PATH!;%%f
  5. for /D %%f in ( "%USERPROFILE%\AppData\Local\Programs\Python\Python*" ) do set PATH=!PATH!;%%f;%%f\Scripts
  6. call :install wheel
  7. if ERRORLEVEL 1 exit /B 1
  8. call :install pywin32
  9. if ERRORLEVEL 1 exit /B 1
  10. call :install cx_Freeze
  11. if ERRORLEVEL 1 exit /B 1
  12. call :install readme_renderer
  13. if ERRORLEVEL 1 exit /B 1
  14. call :install PySide6
  15. if ERRORLEVEL 1 exit /B 1
  16. echo ---
  17. echo finished successfully
  18. pause
  19. exit /B 0
  20. :install
  21. echo Installing %1 ...
  22. pip3 install --upgrade %1
  23. if ERRORLEVEL 1 (
  24. echo FAILED to install %1
  25. pause
  26. exit /B 1
  27. )
  28. exit /B 0