dev env in vscode
parent
ee6fc01441
commit
c1ac5cf95e
@ -1,4 +1,4 @@
|
||||
geany/
|
||||
mkdocs-material/
|
||||
mkdocs-material
|
||||
docs/draft
|
||||
public
|
||||
venv
|
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Read configurations from pyvenv.cfg
|
||||
home=$(awk -F' = ' '$1=="home"{print $2}' pyvenv.cfg)
|
||||
executable=$(awk -F' = ' '$1=="executable"{print $2}' pyvenv.cfg)
|
||||
version=$(awk -F' = ' '$1=="version"{print $2}' pyvenv.cfg)
|
||||
|
||||
# Check if venv exists, if not, create it using the details from pyenv.cfg
|
||||
if [ ! -d "venv" ]; then
|
||||
$executable -m venv venv
|
||||
fi
|
||||
|
||||
# Install requirements
|
||||
venv/bin/python -m pip install --upgrade pip
|
||||
venv/bin/python -m pip install -r requirements.txt
|
Loading…
Reference in New Issue