-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_env.sh
More file actions
executable file
·36 lines (30 loc) · 867 Bytes
/
setup_env.sh
File metadata and controls
executable file
·36 lines (30 loc) · 867 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
#!/bin/bash
# Setup script for MACA project Python environment
echo "Setting up MACA Python virtual environment..."
# Activate virtual environment
source .venv/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install requirements
pip install -r requirements.txt
# Install poppler for PDF processing (macOS only)
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "Checking for poppler..."
if ! command -v pdfinfo &> /dev/null; then
echo "Installing poppler via Homebrew..."
brew install poppler
else
echo "✓ poppler already installed"
fi
fi
echo ""
echo "✓ Setup complete!"
echo ""
echo "To activate the virtual environment in the future:"
echo " source .venv/bin/activate"
echo ""
echo "To run the extraction script:"
echo " python scripts/extract_pdf.py"
echo ""
echo "To deactivate when done:"
echo " deactivate"