-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·33 lines (25 loc) · 869 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
ENV_NAME="faast-env"
pip install virtualenv --upgrade
# Create a virtual environment
if [ ! -d "$ENV_NAME" ]; then
echo "Creating virtual environment '$ENV_NAME'..."
python3 -m venv "$ENV_NAME"
echo "Virtual environment '$ENV_NAME' created."
else
echo "Virtual environment '$ENV_NAME' already exists. Skipping creation."
fi
if [[ $VIRTUAL_ENV != *"$ENV_NAME"* ]]; then
echo "Activating virtual environment '$ENV_NAME'..."
source $ENV_NAME/bin/activate
echo "Virtual environment '$ENV_NAME' activated."
else
echo "Virtual environment '$ENV_NAME' already activated. Skipping activation."
fi
pip install setuptools --upgrade
pip install wheel --upgrade
# Install dependencies from requirements.txt
pip install -r requirements.txt
(cd util && pip install .)
(cd tests && pip install .)
chmod +x ./start.sh ./stop.sh ./test.sh ./kill.sh