Skip to content

Commit

Permalink
comments in venv script
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1 committed Jun 20, 2024
1 parent b4cad79 commit 4be1053
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
9 changes: 3 additions & 6 deletions prj/script/venv_create.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,19 @@ echo Using Python version: %py_ver%
REM -----------------------------------------------------------
REM -----------------------------------------------------------

REM Create the virtual environment using the py launcher
echo ".....creating venv"
CALL %py_command% -m venv "%venv_dir%

echo ".....virtual environment created"
echo ".....venv created"

CALL %venv_dir%\Scripts\activate

echo ".....pip reqs installing...."

echo ".....installing pip reqs ...."
CALL %script_dir%\pip_reqs_install.cmd

echo ".....pip reqs installed"

CALL %venv_dir%\Scripts\deactivate

echo ".....venv ready"


pause
15 changes: 5 additions & 10 deletions prj/script/venv_create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,19 @@ source ${script_dir}/common.sh
# - that set in `common.sh` if any, or if not set there then
# - whatever is found as "python" on path
py_ver=${1:-$py_ver}


echo "using python version: " ${py_ver}

python${py_ver} -m venv ${venv_dir}

echo ".....virtual environment created"
echo "creating venv..... "
python${py_ver} -m venv ${venv_dir}
echo ".....venv created"

source ${venv_dir}/bin/activate

echo ".....pip reqs installing...."


echo ".....installing pip reqs ...."
source ${script_dir}/pip_reqs_install.sh

echo ".....pip reqs installed"

#
# source $script_dir/venv/bin/deactivate

source $script_dir/venv/bin/deactivate
echo ".....venv ready"

0 comments on commit 4be1053

Please sign in to comment.