mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-03 01:33:14 +00:00
Create venv if it is missing (#1089)
This commit is contained in:
parent
8b0a85a143
commit
fdb02f8829
@ -2,10 +2,16 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
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
|
if ! test -e venv; then
|
||||||
echo "No python venv detected. Please run start.sh first."
|
echo "Creating python venv for PiSCSI-Web"
|
||||||
exit 1
|
python3 -m venv venv
|
||||||
|
echo "Activating venv"
|
||||||
|
source venv/bin/activate
|
||||||
|
echo "Installing requirements.txt"
|
||||||
|
pip3 install wheel
|
||||||
|
pip3 install -r requirements.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
Loading…
Reference in New Issue
Block a user