-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_linux.sh
More file actions
executable file
·36 lines (31 loc) · 1.13 KB
/
start_linux.sh
File metadata and controls
executable file
·36 lines (31 loc) · 1.13 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
# Create and activate virtual environment if it doesn't exist
if [ ! -d "Otrace_venv" ]; then
python3 -m venv Otrace_venv
source Otrace_venv/bin/activate
pip install --upgrade pip
required_packages=(
bcrypt
textual==0.89.1
textual_textarea==0.15.0
requests
maskpass
# readline
)
for package in "${required_packages[@]}"; do
if [ "$package" == "readline" ]; then
echo "Skipping installation of readline via pip. Ensure 'libreadline-dev' is installed on your system."
continue
fi
pip install "$package"
done
fi
source Otrace_venv/bin/activate
pip install --upgrade pip
# Upgrade outdated packages except textual and textual_textarea
outdated_packages=$(pip list --outdated --format=columns | awk 'NR>2 {print $1}' | grep -Ev '^(textual|textual_textarea)$')
if [ -n "$outdated_packages" ]; then
echo "Upgrading outdated packages (excluding textual and textual_textarea):"
echo "$outdated_packages" | xargs -n1 pip install --upgrade
else
echo "All packages are up to date (excluding textual and textual_textarea)."
fi