Skip to content

Commit eb49ccf

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

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
@@ -65,7 +65,7 @@ if "%~1"=="-k" (set kill=true) & shift & goto CheckOpts
6565
rem These use the actual property names used by MSBuild. We could just let
6666
rem them in through the environment, but we specify them on the command line
6767
rem anyway for visibility so set defaults after this
68-
if "%~1"=="-e" (set IncludeExternals=true) & call "%dir%get_externals.bat" & shift & goto CheckOpts
68+
if "%~1"=="-e" (set IncludeExternals=true) & shift & goto CheckOpts
6969
if "%~1"=="--no-ssl" (set IncludeSSL=false) & shift & goto CheckOpts
7070
if "%~1"=="--no-tkinter" (set IncludeTkinter=false) & shift & goto CheckOpts
7171
if "%~1"=="--no-bsddb" (set IncludeBsddb=false) & shift & goto CheckOpts
@@ -75,6 +75,8 @@ if "%IncludeSSL%"=="" set IncludeSSL=true
7575
if "%IncludeTkinter%"=="" set IncludeTkinter=true
7676
if "%IncludeBsddb%"=="" set IncludeBsddb=true
7777

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

8082
rem Setup the environment

PCbuild/get_externals.bat

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,17 @@ echo.Fetching external libraries...
5454
rem When updating these versions, remember to update the relevant property
5555
rem files in both this dir and PC\VS9.0
5656

57-
for %%e in (
58-
bzip2-1.0.6
59-
db-4.7.25.0
60-
nasm-2.11.06
61-
openssl-1.0.2d
62-
tcl-8.5.15.0
63-
tk-8.5.15.0
64-
tix-8.4.3.5
65-
sqlite-3.6.21
66-
) do (
57+
set libraries=
58+
set libraries=%libraries% bzip2-1.0.6
59+
if NOT "%IncludeBsddb%"=="false" set libraries=%libraries% db-4.7.25.0
60+
if NOT "%IncludeSSL%"=="false" set libraries=%libraries% nasm-2.11.06
61+
if NOT "%IncludeSSL%"=="false" set libraries=%libraries% openssl-1.0.2d
62+
set libraries=%libraries% sqlite-3.6.21
63+
if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tcl-8.5.15.0
64+
if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tk-8.5.15.0
65+
if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tix-8.4.3.5
66+
67+
for %%e in (%libraries%) do (
6768
if exist %%e (
6869
echo.%%e already exists, skipping.
6970
) else (

0 commit comments

Comments
 (0)