From 96b2915960c36b428f10255dc1ccd2d1873e208f Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sat, 19 Mar 2022 09:05:29 +1300 Subject: [PATCH] [ci] appveyor.yml: Only set PY3 if SWIGLANG is python See #2235 --- appveyor.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index b1783c7c8..87c22376d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -140,6 +140,8 @@ install: - if "%OSVARIANT%"=="mingw" bash -c "pacman --noconfirm --sync mingw%MBITS%/mingw-w64-%MARCH%-autotools mingw%MBITS%/mingw-w64-%MARCH%-pcre2 mingw%MBITS%/mingw-w64-%MARCH%-boost mingw%MBITS%/mingw-w64-%MARCH%-python" - if not "%WITHLANG%"=="" set SWIGWITHLANG==%WITHLANG% - if not "%WITHLANG%"=="" where %WITHLANG% + if "%SWIGLANG%"=="python" set PY3=3 + if "%PY2%"="2" set PY3= - bash -c "which $CC" - bash -c "which $CXX" - bash -c "$CC --version | head -n 1" @@ -159,7 +161,7 @@ build_script: - if "%OSVARIANT%"=="" bash -c "exec 0