-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_dev.sh
More file actions
executable file
Β·40 lines (32 loc) Β· 853 Bytes
/
Copy pathinstall_dev.sh
File metadata and controls
executable file
Β·40 lines (32 loc) Β· 853 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
39
40
#!/bin/bash
# Installation and setup script for auto-translate-localizables
set -e
echo "π Setting up auto-translate-localizables..."
echo ""
# Check Python version
if ! command -v python3 &> /dev/null; then
echo "β Error: Python 3 is required"
exit 1
fi
PYTHON_VERSION=$(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2)
echo "β Python $PYTHON_VERSION found"
# Check pip
if ! command -v pip3 &> /dev/null; then
echo "β Error: pip3 is required"
exit 1
fi
echo "β pip found"
# Install package in editable mode
echo ""
echo "π¦ Installing package in development mode..."
pip3 install -e .
echo ""
echo "β
Installation complete!"
echo ""
echo "Try it out:"
echo " auto-translate-xcloc --version"
echo " auto-translate-xcloc --list-languages"
echo ""
echo "For help:"
echo " auto-translate-xcloc --help"
echo ""