Skip to content

Commit 7fc6b5a

Browse files
committed
appveyor.bat: re-enable downloading python2 if it doesn't exist
Signed-off-by: Christian Brabandt <[email protected]>
1 parent 41422d4 commit 7fc6b5a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

appveyor.bat

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ set "PERL_DIR=%DEPENDENCIES%\perl%PERL_VER%-%ARCH%"
4949
set "PYTHON_VER=27"
5050
set "PYTHON_RELEASE=2.7.18"
5151
@rem To test on a local machine if Python 2.7 is not installed
52-
rem set "PYTHON_32_URL=https://www.python.org/ftp/python/%PYTHON_RELEASE%/python-%PYTHON_RELEASE%.msi"
53-
rem set "PYTHON_64_URL=https://www.python.org/ftp/python/%PYTHON_RELEASE%/python-%PYTHON_RELEASE%.amd64.msi"
52+
set "PYTHON_32_URL=https://www.python.org/ftp/python/%PYTHON_RELEASE%/python-%PYTHON_RELEASE%.msi"
53+
set "PYTHON_64_URL=https://www.python.org/ftp/python/%PYTHON_RELEASE%/python-%PYTHON_RELEASE%.amd64.msi"
5454
set "PYTHON_32_DIR=C:\python%PYTHON_VER%"
5555
set "PYTHON_64_DIR=C:\python%PYTHON_VER%-x64"
5656
SetLocal EnableDelayedExpansion
57-
rem set "PYTHON_URL=!PYTHON_%BIT%_URL!"
57+
set "PYTHON_URL=!PYTHON_%BIT%_URL!"
5858
set "PYTHON_DIR=!PYTHON_%BIT%_DIR!"
5959
EndLocal & (
60-
rem set "PYTHON_URL=%PYTHON_URL%"
60+
set "PYTHON_URL=%PYTHON_URL%"
6161
set "PYTHON_DIR=%PYTHON_DIR%"
6262
)
6363

@@ -215,12 +215,12 @@ rem move /Y %DEPENDENCIES%\tcltk-%TCL_VER_LONG%.10-barebones-%ARCH% %TCL_DIR%
215215
rem mklink /H vim\src\%TCL_DLL% %TCL_DIR%\bin\%TCL_DLL%
216216
:skiptcl
217217

218-
goto :skippython2
219218
@rem Python2
220-
@rem To test on a local machine if Python 2.7 is not installed
221-
rem call :downloadfile "%PYTHON_URL%" downloads\python-%BIT%.msi
222-
rem start "" /W downloads\python-%BIT%.msi ^
223-
rem /qn TARGETDIR=%PYTHON_DIR% ADDLOCAL=DefaultFeature,PrependPath
219+
IF exist %PYTHON_DIR% goto :skippython2
220+
@rem only install if it is not installed
221+
call :downloadfile "%PYTHON_URL%" downloads\python-%BIT%.msi
222+
start "" /W downloads\python-%BIT%.msi ^
223+
/qn TARGETDIR=%PYTHON_DIR% ADDLOCAL=DefaultFeature,PrependPath
224224
:skippython2
225225

226226
@rem Python3

0 commit comments

Comments
 (0)