@@ -49,15 +49,15 @@ set "PERL_DIR=%DEPENDENCIES%\perl%PERL_VER%-%ARCH%"
49
49
set " PYTHON_VER = 27"
50
50
set " PYTHON_RELEASE = 2.7.18"
51
51
@ 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"
54
54
set " PYTHON_32_DIR = C:\python%PYTHON_VER% "
55
55
set " PYTHON_64_DIR = C:\python%PYTHON_VER% -x64"
56
56
SetLocal EnableDelayedExpansion
57
- rem set "PYTHON_URL=!PYTHON_%BIT%_URL!"
57
+ set " PYTHON_URL = !PYTHON_%BIT%_URL! "
58
58
set " PYTHON_DIR = !PYTHON_%BIT%_DIR! "
59
59
EndLocal & (
60
- rem set "PYTHON_URL=%PYTHON_URL%"
60
+ set " PYTHON_URL = %PYTHON_URL% "
61
61
set " PYTHON_DIR = %PYTHON_DIR% "
62
62
)
63
63
@@ -215,12 +215,12 @@ rem move /Y %DEPENDENCIES%\tcltk-%TCL_VER_LONG%.10-barebones-%ARCH% %TCL_DIR%
215
215
rem mklink /H vim\src\%TCL_DLL% %TCL_DIR%\bin\%TCL_DLL%
216
216
:skiptcl
217
217
218
- goto :skippython2
219
218
@ 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
224
224
:skippython2
225
225
226
226
@ rem Python3
0 commit comments