Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6deff2

Browse files
committed
Issue #24986: Save some bandwidth from svn.python.org
Don't download sources that won't be used.
1 parent 6e87576 commit a6deff2

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

PCbuild/build.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,16 @@ if "%~1"=="-V" shift & goto Version
6666
rem These use the actual property names used by MSBuild. We could just let
6767
rem them in through the environment, but we specify them on the command line
6868
rem anyway for visibility so set defaults after this
69-
if "%~1"=="-e" (set IncludeExternals=true) & call "%dir%get_externals.bat" & shift & goto CheckOpts
69+
if "%~1"=="-e" (set IncludeExternals=true) & shift & goto CheckOpts
7070
if "%~1"=="--no-ssl" (set IncludeSSL=false) & shift & goto CheckOpts
7171
if "%~1"=="--no-tkinter" (set IncludeTkinter=false) & shift & goto CheckOpts
7272

7373
if "%IncludeExternals%"=="" set IncludeExternals=false
7474
if "%IncludeSSL%"=="" set IncludeSSL=true
7575
if "%IncludeTkinter%"=="" set IncludeTkinter=true
7676

77+
if "%IncludeExternals%"=="true" call "%dir%get_externals.bat"
78+
7779
if "%platf%"=="x64" (set vs_platf=x86_amd64)
7880

7981
rem Setup the environment

PCbuild/get_externals.bat

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,17 @@ if ERRORLEVEL 9009 (
5151

5252
echo.Fetching external libraries...
5353

54-
for %%e in (
55-
bzip2-1.0.6
56-
nasm-2.11.06
57-
openssl-1.0.2d
58-
tcl-core-8.6.4.2
59-
tk-8.6.4.2
60-
tix-8.4.3.6
61-
sqlite-3.8.11.0
62-
xz-5.0.5
63-
) do (
54+
set libraries=
55+
set libraries=%libraries% bzip2-1.0.6
56+
if NOT "%IncludeSSL%"=="false" set libraries=%libraries% nasm-2.11.06
57+
if NOT "%IncludeSSL%"=="false" set libraries=%libraries% openssl-1.0.2d
58+
set libraries=%libraries% sqlite-3.8.11.0
59+
if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tcl-core-8.6.4.2
60+
if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tk-8.6.4.2
61+
if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tix-8.4.3.6
62+
set libraries=%libraries% xz-5.0.5
63+
64+
for %%e in (%libraries%) do (
6465
if exist %%e (
6566
echo.%%e already exists, skipping.
6667
) else (

0 commit comments

Comments
 (0)