Skip to content

Commit

Permalink
utilized py launcher with explicit 3.8-32 python version
Browse files Browse the repository at this point in the history
  • Loading branch information
LexiconCode committed Jan 14, 2022
1 parent ca2c240 commit 883293f
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions Install_Caster_DNS-WSR.bat
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

0 comments on commit 883293f

Please sign in to comment.