Skip to content

Commit a2daed7

Browse files
Update setup.sh (#18)
2 parents 1880dff + 8dbe6ec commit a2daed7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripting_tools/setup.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# Enhanced Python virtual environment setup script without Zsh installation and setup
3+
# Enhanced Python virtual environment setup script with global zap-cli and global package installation
44
set -e
55

66
# Colors for output
@@ -56,7 +56,7 @@ echo -e "${YELLOW}Activating the virtual environment...${NC}"
5656
source "$VENV_DIR/bin/activate"
5757

5858
# Upgrade pip and install dependencies from requirements.txt
59-
echo -e "${YELLOW}Upgrading pip and installing packages...${NC}"
59+
echo -e "${YELLOW}Upgrading pip and installing packages in the virtual environment...${NC}"
6060
pip install --upgrade pip
6161
pip install -r "$REQUIREMENTS_FILE"
6262

@@ -70,6 +70,10 @@ else
7070
exit 1
7171
fi
7272

73+
# Install pip packages globally (if any additional packages need to be globally installed)
74+
echo -e "${YELLOW}Installing global pip packages...${NC}"
75+
sudo pip install -r "$REQUIREMENTS_FILE" # Install globally
76+
7377
# Final messages
7478
echo -e "${GREEN}Setup complete. Virtual environment is ready to use.${NC}"
7579
echo -e "${GREEN}To activate the virtual environment manually, run:${NC}"

0 commit comments

Comments
 (0)