Raise minimum Python version

This was accidentally lowered in 5d3240d492 and 3.8 has gone EOL since then.
This commit is contained in:
Margen67 2024-10-13 15:08:19 -07:00
parent 731c6057de
commit b39f1fbe60
3 changed files with 3 additions and 3 deletions

2
xb.bat
View File

@ -8,7 +8,7 @@ REM Environment Validation
REM ============================================================================ REM ============================================================================
SET "PYTHON_MINIMUM_VERSION[0]=3" SET "PYTHON_MINIMUM_VERSION[0]=3"
SET "PYTHON_MINIMUM_VERSION[1]=7" SET "PYTHON_MINIMUM_VERSION[1]=9"
CALL :check_python CALL :check_python
IF %_RESULT% NEQ 0 ( IF %_RESULT% NEQ 0 (
ECHO. ECHO.

2
xb.ps1
View File

@ -14,7 +14,7 @@ foreach ($pythonExecutable in $pythonExecutables) {
} }
} }
# Neither found, error and exit # Neither found, error and exit
$pythonMinimumVer = 3,7 $pythonMinimumVer = 3,9
if (!$pythonPath) { if (!$pythonPath) {
Write-FatalError "ERROR: Python $($pythonMinimumVer[0]).$($pythonMinimumVer[1])+ must be installed and on PATH:`nhttps://www.python.org/" Write-FatalError "ERROR: Python $($pythonMinimumVer[0]).$($pythonMinimumVer[1])+ must be installed and on PATH:`nhttps://www.python.org/"
} }

View File

@ -137,7 +137,7 @@ def main():
print('') print('')
# Check python version. # Check python version.
python_minimum_ver=3,7 python_minimum_ver=3,9
if not sys.version_info[:2] >= (python_minimum_ver[0], python_minimum_ver[1]): if not sys.version_info[:2] >= (python_minimum_ver[0], python_minimum_ver[1]):
print('ERROR: Python ', python_minimum_ver[0], '.', python_minimum_ver[1], '+ must be installed and on PATH', sep='') print('ERROR: Python ', python_minimum_ver[0], '.', python_minimum_ver[1], '+ must be installed and on PATH', sep='')
sys.exit(1) sys.exit(1)