From 649a869d9cc8bd25f17ed138ed8081b3d952a8ba Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 8 Sep 2026 16:28:32 +0500 Subject: [PATCH] build-deps/python: remove redundant `PYTHON_AMD64_POSTFIX` variable It was only needed to set `PYTHON_INSTALLER` correctly, but `PYTHON_INSTALLER` is actually only used when arch is not x64/arm64, exactly the only cases when `PYTHON_AMD64_POSTFIX` is set. --- win/build-deps.cmd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/win/build-deps.cmd b/win/build-deps.cmd index 77910ab229..c8fc144902 100644 --- a/win/build-deps.cmd +++ b/win/build-deps.cmd @@ -551,10 +551,6 @@ SET COMPILE_WITH_WPO=FALSE :Python set DEPENDENCY_NAME=Python %PYTHON_VERSION% set DEPENDENCY_DIR=N/A -set PYTHON_AMD64_POSTFIX= -IF /I "%VS_PLATFORM%"=="x64" set "PYTHON_AMD64_POSTFIX=-amd64" -IF /I "%VS_PLATFORM%"=="arm64" set "PYTHON_AMD64_POSTFIX=-arm64" -set "PYTHON_INSTALLER=python-%PYTHON_VERSION%%PYTHON_AMD64_POSTFIX%.exe" IF NOT "%IFCOS_INSTALL_PYTHON%"=="TRUE" ( call cecho.cmd 0 13 "IFCOS_INSTALL_PYTHON not 'TRUE', skipping installation of Python." @@ -565,7 +561,7 @@ IF NOT "%IFCOS_INSTALL_PYTHON%"=="TRUE" ( IF /I NOT "%VS_PLATFORM%"=="x64" IF /I NOT "%VS_PLATFORM%"=="arm64" ( call cecho.cmd 0 12 "Automatic installation of Python for x86 builds is not supported," call cecho.cmd 0 12 "please install Python %PYTHON_VERSION% manually and ensure that it is available in PATH." - call cecho.cmd 0 12 "https://www.python.org/ftp/python/%PYTHON_VERSION%/%PYTHON_INSTALLER%" + call cecho.cmd 0 12 "https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%.exe" goto :Error )