win-install-dependencies.cmd 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 pip
  7. if ERRORLEVEL 1 exit /B 1
  8. call :install setuptools
  9. if ERRORLEVEL 1 exit /B 1
  10. call :install wheel
  11. if ERRORLEVEL 1 exit /B 1
  12. call :install pywin32
  13. if ERRORLEVEL 1 exit /B 1
  14. call :install Cython
  15. if ERRORLEVEL 1 exit /B 1
  16. call :install PyQt5_sip
  17. if ERRORLEVEL 1 exit /B 1
  18. call :install PyQt5
  19. if ERRORLEVEL 1 exit /B 1
  20. call :install cx_Freeze
  21. if ERRORLEVEL 1 exit /B 1
  22. call :install readme_renderer
  23. if ERRORLEVEL 1 exit /B 1
  24. call :install readme_renderer[md]
  25. if ERRORLEVEL 1 exit /B 1
  26. echo ---
  27. echo finished successfully
  28. pause
  29. exit /B 0
  30. :install
  31. echo Installing %1 ...
  32. python -m pip install --upgrade %1
  33. if ERRORLEVEL 1 (
  34. echo FAILED to install %1
  35. pause
  36. exit /B 1
  37. )
  38. exit /B 0