win-install-dependencies.cmd 627 B

123456789101112131415161718192021222324252627282930313233
  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 PyQt6
  7. if ERRORLEVEL 1 exit /B 1
  8. call :install cx_Freeze
  9. if ERRORLEVEL 1 exit /B 1
  10. call :install pywin32
  11. if ERRORLEVEL 1 exit /B 1
  12. echo ---
  13. echo finished successfully
  14. pause
  15. exit /B 0
  16. :install
  17. echo Installing %1 ...
  18. pip3 install --upgrade %1
  19. if ERRORLEVEL 1 (
  20. echo FAILED to install %1
  21. pause
  22. exit /B 1
  23. )
  24. exit /B 0