chore: update minimum Python version to 3.13.5
- Update prerequisites check in setup.sh - Update documentation in SETUP.md
This commit is contained in:
2
SETUP.md
2
SETUP.md
@@ -20,7 +20,7 @@ sudo ./setup.sh
|
|||||||
## What the Setup Script Does
|
## What the Setup Script Does
|
||||||
|
|
||||||
1. **Prerequisites Check**
|
1. **Prerequisites Check**
|
||||||
- Verifies Python 3.8+, pip3, git, systemd
|
- Verifies Python 3.13.5+, pip3, git, systemd
|
||||||
- Checks for root privileges
|
- Checks for root privileges
|
||||||
|
|
||||||
2. **Repository Setup**
|
2. **Repository Setup**
|
||||||
|
|||||||
6
setup.sh
6
setup.sh
@@ -48,9 +48,9 @@ check_prerequisites() {
|
|||||||
command -v systemctl >/dev/null 2>&1 || error "systemctl is not available"
|
command -v systemctl >/dev/null 2>&1 || error "systemctl is not available"
|
||||||
|
|
||||||
# Check Python version
|
# Check Python version
|
||||||
python_version=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
|
python_version=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}')")
|
||||||
if [ "$(printf '%s\n' "3.8" "$python_version" | sort -V | head -n1)" != "3.8" ]; then
|
if [ "$(printf '%s\n' "3.13.5" "$python_version" | sort -V | head -n1)" != "3.13.5" ]; then
|
||||||
error "Python 3.8+ is required, found $python_version"
|
error "Python 3.13.5+ is required, found $python_version"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
success "Prerequisites check passed"
|
success "Prerequisites check passed"
|
||||||
|
|||||||
Reference in New Issue
Block a user