-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·38 lines (31 loc) · 982 Bytes
/
setup.sh
File metadata and controls
executable file
·38 lines (31 loc) · 982 Bytes
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
34
35
36
37
38
#!/bin/bash
# Exit on error
set -e
echo "Setting up BioContext environment..."
# Initialize and update submodules
git submodule update --init --recursive
# Setup each submodule
for module in modules/*; do
if [ -d "$module" ]; then
echo "Setting up $module..."
(
cd "$module"
# Create virtual environment if it doesn't exist
if [ ! -d ".venv" ]; then
python -m venv .venv
fi
# Activate virtual environment and install dependencies
source .venv/bin/activate
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
elif [ -f "pyproject.toml" ]; then
pip install -e .
fi
deactivate
)
fi
done
# Create necessary directories
mkdir -p data
mkdir -p logs
echo "Setup complete! You can now use the individual MCP servers or docker-compose to run all services."