Skip to content

Commit 8afd0d4

Browse files
final changes to setup.sh, setup.py and requirments.txt
1 parent 8d4b182 commit 8afd0d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripting_tools/setup.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ pip install --upgrade pip
8888
echo -e "${YELLOW}Installing packages from $REQUIREMENTS_FILE...${NC}"
8989
pip install -r "$REQUIREMENTS_FILE"
9090

91+
# Check if setup.py exists and install the package
92+
SETUP_PY_PATH="${ROOT_DIR}/setup.py"
93+
if [ -f "$SETUP_PY_PATH" ]; then
94+
echo -e "${YELLOW}Found setup.py. Installing the package...${NC}"
95+
pip install -e "$ROOT_DIR"
96+
else
97+
echo -e "${YELLOW}No setup.py found. Skipping installation from setup.py.${NC}"
98+
fi
99+
91100
# Create a symlink for the zap-cli command globally
92101
ZAP_CLI_PATH="${ROOT_DIR}/zap_cli.py"
93102

0 commit comments

Comments
 (0)