|
|
|
@ -1,4 +1,5 @@ |
|
|
|
@echo off |
|
|
|
title installer |
|
|
|
REM set up parent and current directory constants |
|
|
|
for %%d in (%~dp0.) do set Directory=%%~fd |
|
|
|
for %%d in (%~dp0..) do set ParentDirectory=%%~fd |
|
|
|
@ -35,9 +36,8 @@ for /f "usebackq tokens=*" %%a in (`dir /b "%winpython%" ^| findstr /r /i "pytho |
|
|
|
:skipC |
|
|
|
set pa="%Directory%\workers\path_append.bat" |
|
|
|
REM python setup |
|
|
|
set PATH="%winpython%\%exe%";%PATH% |
|
|
|
set PATH="%winpython%\%exe%";"%winpython%\%exe%\Scripts";%PATH% |
|
|
|
setx winpython %winpython% |
|
|
|
python -m pip install -r "%Directory%\google_api_wrapper\requirements.txt" |
|
|
|
|
|
|
|
REM adding path_append.bat to user script dir |
|
|
|
copy /Y %pa% "%Directory%\ua-path\path_append.bat" |
|
|
|
@ -56,4 +56,8 @@ REM append to PATH |
|
|
|
call %pa% "%winpython%\%exe%" |
|
|
|
call %pa% "%winpython%\%exe%\Scripts" |
|
|
|
call %pa% "%Directory%\ua-path" |
|
|
|
title "Installing requirements..." |
|
|
|
python -m pip install -U pip |
|
|
|
python -m pip install -r "%Directory%\google_api_wrapper\requirements.txt" |
|
|
|
python -m pip install -r "%Directory%\requirements.txt |
|
|
|
:end |