mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 09:36:48 +03:00
Removed the reference to the local python installation.
Changed script to use multiline command separator for the long command sequence. Added some comment lines.
This commit is contained in:
parent
4206c333ae
commit
be24fb98ae
|
@ -1,11 +1,22 @@
|
||||||
echo on
|
echo on
|
||||||
set PYTHON37=%UserProfile%\AppData\Local\Programs\Python\Python37\python.exe
|
REM The assumption is made that the python executable can be found.
|
||||||
|
|
||||||
REM set variabless
|
REM Set variabless
|
||||||
set ENV_NAME=wslenv2-win
|
set ENV_NAME=wslenv2-win
|
||||||
set VENV_DIR=%ENV_NAME%\Scripts
|
set VENV_DIR=%ENV_NAME%\Scripts
|
||||||
set PYTHON_VENV=%VENV_DIR%\python.exe
|
set PYTHON_VENV=%VENV_DIR%\python.exe
|
||||||
|
|
||||||
%PYTHON37% -m venv %ENV_NAME%
|
REM Create virtual environment
|
||||||
|
python -m venv %ENV_NAME%
|
||||||
|
|
||||||
|
REM Populate dependencies and run the example
|
||||||
|
Start /WAIT cmd /k "%VENV_DIR%\activate&^
|
||||||
|
%PYTHON_VENV% -m pip install --upgrade pip&^
|
||||||
|
%PYTHON_VENV% -m pip install -r .\requirements.txt&^
|
||||||
|
set MOVIE_FINDER_TYPE=csv&^
|
||||||
|
%PYTHON_VENV% -m movies&^
|
||||||
|
set MOVIE_FINDER_TYPE=sqlite&^
|
||||||
|
%PYTHON_VENV% -m movies&^
|
||||||
|
%VENV_DIR%\deactivate&^
|
||||||
|
pause
|
||||||
|
|
||||||
Start /WAIT cmd /k "%VENV_DIR%\activate & %PYTHON_VENV% -m pip install --upgrade pip & %PYTHON_VENV% -m pip install -r .\requirements.txt & set MOVIE_FINDER_TYPE=csv& %PYTHON_VENV% -m movies & set MOVIE_FINDER_TYPE=sqlite& %PYTHON_VENV% -m movies&%VENV_DIR%\deactivate & pause & exit 0"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user