[Docs] Raise minimum requirements
This commit is contained in:
parent
42b4bf0f82
commit
1f176676b5
|
@ -8,10 +8,9 @@ drivers.
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
* Windows 7 or later
|
* Windows 10 or later
|
||||||
* [Visual Studio 2022, Visual Studio 2019, or Visual Studio 2017](https://www.visualstudio.com/downloads/)
|
* [Visual Studio 2022, Visual Studio 2019, or Visual Studio 2017](https://www.visualstudio.com/downloads/)
|
||||||
* For Visual Studio 2022, MSBuild `v142` must be used due to a compiler bug; See [#2003](https://github.com/xenia-project/xenia/issues/2003).
|
* [Python 3.8+](https://www.python.org/downloads/)
|
||||||
* [Python 3.6+](https://www.python.org/downloads/)
|
|
||||||
* Ensure Python is in PATH.
|
* Ensure Python is in PATH.
|
||||||
* Windows 11 SDK version 10.0.22000.0 (for Visual Studio 2019, this or any newer version)
|
* Windows 11 SDK version 10.0.22000.0 (for Visual Studio 2019, this or any newer version)
|
||||||
|
|
||||||
|
|
17
xb.bat
17
xb.bat
|
@ -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]=6"
|
SET "PYTHON_MINIMUM_VERSION[1]=8"
|
||||||
CALL :check_python
|
CALL :check_python
|
||||||
IF %_RESULT% NEQ 0 (
|
IF %_RESULT% NEQ 0 (
|
||||||
ECHO.
|
ECHO.
|
||||||
|
@ -35,13 +35,14 @@ SETLOCAL ENABLEDELAYEDEXPANSION
|
||||||
|
|
||||||
SET FOUND_PATH=""
|
SET FOUND_PATH=""
|
||||||
|
|
||||||
SET "CANDIDATE_PATHS[0]=C:\python310\python.exe"
|
SET "CANDIDATE_PATHS[0]=C:\python313\python.exe"
|
||||||
SET "CANDIDATE_PATHS[1]=C:\python39\python.exe"
|
SET "CANDIDATE_PATHS[1]=C:\python312\python.exe"
|
||||||
SET "CANDIDATE_PATHS[2]=C:\python38\python.exe"
|
SET "CANDIDATE_PATHS[2]=C:\python311\python.exe"
|
||||||
SET "CANDIDATE_PATHS[3]=C:\python37\python.exe"
|
SET "CANDIDATE_PATHS[3]=C:\python310\python.exe"
|
||||||
SET "CANDIDATE_PATHS[4]=C:\python%PYTHON_MINIMUM_VERSION[0]%%PYTHON_MINIMUM_VERSION[1]%\python.exe"
|
SET "CANDIDATE_PATHS[4]=C:\python39\python.exe"
|
||||||
SET "CANDIDATE_PATHS[5]=C:\Windows\py.exe"
|
SET "CANDIDATE_PATHS[5]=C:\python%PYTHON_MINIMUM_VERSION[0]%%PYTHON_MINIMUM_VERSION[1]%\python.exe"
|
||||||
SET OUTPUT_INDEX=6
|
SET "CANDIDATE_PATHS[6]=C:\Windows\py.exe"
|
||||||
|
SET OUTPUT_INDEX=7
|
||||||
|
|
||||||
FOR /F "usebackq delims=" %%L IN (`2^>NUL where python3`) DO (
|
FOR /F "usebackq delims=" %%L IN (`2^>NUL where python3`) DO (
|
||||||
IF %%~zL NEQ 0 (
|
IF %%~zL NEQ 0 (
|
||||||
|
|
2
xb.ps1
2
xb.ps1
|
@ -14,7 +14,7 @@ foreach ($pythonExecutable in $pythonExecutables) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Neither found, error and exit
|
# Neither found, error and exit
|
||||||
$pythonMinimumVer = 3,6
|
$pythonMinimumVer = 3,8
|
||||||
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/"
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@ def main():
|
||||||
print('')
|
print('')
|
||||||
|
|
||||||
# Check python version.
|
# Check python version.
|
||||||
python_minimum_ver=3,6
|
python_minimum_ver=3,8
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue