forked from dictation-toolbox/Caster
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utilized py launcher with explicit 3.8-32 python version
- Loading branch information
1 parent
ca2c240
commit 883293f
Showing
1 changed file
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
|
||
@echo off | ||
|
||
SetLocal EnableDelayedExpansion | ||
set python_version=3.8-32 | ||
set currentpath=%~dp0 | ||
echo Installation path: %currentpath% | ||
|
||
@REM execute python launcher for python directory | ||
FOR /F "tokens=1 USEBACKQ delims=" %%i IN (`py -%python_version% -c "import sys; print(sys.exec_prefix)"`) DO ( set python_path=%%i ) | ||
|
||
@REM whack a funny trailing character (newline?) from end | ||
set python_path=!python_path:~0,-1! | ||
|
||
set PATH=%python_path%;%python_path%/Scripts;%PATH% | ||
echo %PATH% | ||
|
||
echo Next line should clearly state python version: | ||
python --version | ||
|
||
echo Using this python/pip: | ||
python -m pip -V | ||
|
||
py -%python_version% -m pip install --upgrade pip | ||
|
||
echo Installing Caster Dependencies for DNS/WSR | ||
python -m pip install -r "%currentpath%requirements.txt" | ||
py -%python_version% -m pip install -r "%currentpath%requirements.txt" | ||
|
||
pause 1 | ||
pause 1 |