Skip to content

Commit c63fea8

Browse files
committed
chore(venv) : sets up virtual environment and allows parsing the args to the script
1 parent 0daa635 commit c63fea8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/install.sh

100644100755
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@ echo "Downloading Nixopus..."
2727
git clone https://github.com/raghavyuva/nixopus.git
2828
cd nixopus/installer
2929

30+
echo "Setting up Python virtual environment..."
31+
python3 -m venv venv
32+
source venv/bin/activate
33+
3034
echo "Installing dependencies..."
31-
pip3 install -r requirements.txt
35+
pip install --upgrade pip
36+
pip install -r requirements.txt
3237

3338
echo "Starting installation..."
34-
python3 install.py
39+
python3 install.py "$@"
3540

41+
deactivate
3642
cd $TEMP_DIR/..
3743
rm -rf $TEMP_DIR
3844

0 commit comments

Comments
 (0)