[Build] Python min version -> 3.6
Remove 3.10 syntax sugar and reduce min required python version to avoid having to do needless python upgrades on various dev systems as 3.10 is not yet ubiquitous and building on older systems is also still a thing.
This commit is contained in:
@@ -12,7 +12,7 @@ drivers.
|
|||||||
* [Visual Studio 2022](https://www.visualstudio.com/downloads/)
|
* [Visual Studio 2022](https://www.visualstudio.com/downloads/)
|
||||||
* CMake 3.10+ (or C++ CMake tools for Windows)
|
* CMake 3.10+ (or C++ CMake tools for Windows)
|
||||||
* Windows 11 SDK version 10.0.22000.0 (for Visual Studio 2022, this or any newer version)
|
* Windows 11 SDK version 10.0.22000.0 (for Visual Studio 2022, this or any newer version)
|
||||||
* [Python 3.10+ 64-bit](https://www.python.org/downloads/)
|
* [Python 3.6+ 64-bit](https://www.python.org/downloads/)
|
||||||
* Ensure Python is in PATH.
|
* Ensure Python is in PATH.
|
||||||
* [Vulkan SDK](https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-sdk.exe)
|
* [Vulkan SDK](https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-sdk.exe)
|
||||||
* The build script will automatically detect it if installed at `C:\VulkanSDK`
|
* The build script will automatically detect it if installed at `C:\VulkanSDK`
|
||||||
|
|||||||
@@ -95,10 +95,9 @@ class ResultStatus(enum.Enum):
|
|||||||
FAILURE = enum.auto()
|
FAILURE = enum.auto()
|
||||||
|
|
||||||
def print_status(status: ResultStatus):
|
def print_status(status: ResultStatus):
|
||||||
match status:
|
if status == ResultStatus.SUCCESS:
|
||||||
case ResultStatus.SUCCESS:
|
|
||||||
print(f"{bcolors.OKCYAN}Success!{bcolors.ENDC}")
|
print(f"{bcolors.OKCYAN}Success!{bcolors.ENDC}")
|
||||||
case ResultStatus.FAILURE:
|
elif status == ResultStatus.FAILURE:
|
||||||
print(f"{bcolors.FAIL}Error!{bcolors.ENDC}")
|
print(f"{bcolors.FAIL}Error!{bcolors.ENDC}")
|
||||||
|
|
||||||
|
|
||||||
@@ -320,7 +319,7 @@ def main():
|
|||||||
print_warning("The source tree is unversioned. Version info will be omitted from all binaries!\n")
|
print_warning("The source tree is unversioned. Version info will be omitted from all binaries!\n")
|
||||||
|
|
||||||
# Check python version.
|
# Check python version.
|
||||||
python_minimum_ver = 3,10
|
python_minimum_ver = 3,6
|
||||||
if not sys.version_info[:2] >= (python_minimum_ver[0], python_minimum_ver[1]) or not sys.maxsize > 2**32:
|
if not sys.version_info[:2] >= (python_minimum_ver[0], python_minimum_ver[1]) or not sys.maxsize > 2**32:
|
||||||
print_error(f"Python {python_minimum_ver[0]}.{python_minimum_ver[1]}+ 64-bit must be installed and on PATH")
|
print_error(f"Python {python_minimum_ver[0]}.{python_minimum_ver[1]}+ 64-bit must be installed and on PATH")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user