-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·53 lines (45 loc) · 1.41 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·53 lines (45 loc) · 1.41 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
echo "🔬 ArXiv Paper Collector Setup"
echo "=============================="
echo
# Check if Poetry is installed
if ! command -v poetry &> /dev/null; then
echo "📦 Installing Poetry..."
curl -sSL https://install.python-poetry.org | python3 -
# Add Poetry to PATH for current session
export PATH="$HOME/.local/bin:$PATH"
echo "✅ Poetry installed!"
echo "⚠️ You may need to restart your terminal or run: export PATH=\"\$HOME/.local/bin:\$PATH\""
echo
else
echo "✅ Poetry is already installed"
echo
fi
# Check Python version
echo "🐍 Checking Python version..."
if command -v python3.11 &> /dev/null; then
echo "✅ Python 3.11 found"
PYTHON_CMD="python3.11"
elif command -v python3.12 &> /dev/null; then
echo "✅ Python 3.12 found"
PYTHON_CMD="python3.12"
else
echo "❌ Python 3.11 or 3.12 required but not found"
echo "Please install Python 3.11 or 3.12 and try again"
exit 1
fi
# Configure Poetry to use the correct Python version
echo "⚙️ Configuring Poetry to use $PYTHON_CMD..."
poetry env use $PYTHON_CMD
# Install dependencies
echo "📚 Installing dependencies..."
poetry install
echo
echo "🎉 Setup complete!"
echo
echo "To get started:"
echo " poetry run python quick_start.py"
echo
echo "Or use the command line interface:"
echo " poetry run python main.py --email your@email.com --authors \"Author Name\" --expand"
echo