mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 08:29:59 +00:00
Create venv if it is missing (#1089)
This commit is contained in:
parent
8b0a85a143
commit
fdb02f8829
@ -2,10 +2,16 @@
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
# Check for the existence of a python venv in the current dir
|
||||
|
||||
# Create the venv if it doesn't exist
|
||||
if ! test -e venv; then
|
||||
echo "No python venv detected. Please run start.sh first."
|
||||
exit 1
|
||||
echo "Creating python venv for PiSCSI-Web"
|
||||
python3 -m venv venv
|
||||
echo "Activating venv"
|
||||
source venv/bin/activate
|
||||
echo "Installing requirements.txt"
|
||||
pip3 install wheel
|
||||
pip3 install -r requirements.txt
|
||||
fi
|
||||
|
||||
source venv/bin/activate
|
||||
|
Loading…
Reference in New Issue
Block a user