win-install-dependencies.cmd 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 windows-curses
  15. if ERRORLEVEL 1 exit /B 1
  16. call :install pyreadline3
  17. if ERRORLEVEL 1 exit /B 1
  18. call :install pycryptodomex
  19. if ERRORLEVEL 1 exit /B 1
  20. call :install pyaes
  21. if ERRORLEVEL 1 exit /B 1
  22. call :install cffi
  23. if ERRORLEVEL 1 exit /B 1
  24. call :install argon2-cffi
  25. if ERRORLEVEL 1 exit /B 1
  26. call :install argon2pure
  27. if ERRORLEVEL 1 exit /B 1
  28. call :install cx_Freeze
  29. if ERRORLEVEL 1 exit /B 1
  30. call :install readme_renderer
  31. if ERRORLEVEL 1 exit /B 1
  32. echo ---
  33. echo finished successfully
  34. pause
  35. exit /B 0
  36. :install
  37. echo Installing %1 ...
  38. py -m pip install --upgrade %1
  39. if ERRORLEVEL 1 (
  40. echo FAILED to install %1
  41. pause
  42. exit /B 1
  43. )
  44. exit /B 0