summaryrefslogtreecommitdiff
path: root/PCbuild/get_externals.bat
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2015-09-04 01:10:23 -0500
committerZachary Ware <zachary.ware@gmail.com>2015-09-04 01:10:23 -0500
commit892c04e0e8e89cf0027c3909bdb7ed8c43093fdb (patch)
tree81af1d436ba525d95db507d638f99cd8eb9dffdb /PCbuild/get_externals.bat
parent48cdfb336b62c2f5ef4ce686a8f8e25a968209ee (diff)
downloadcpython-892c04e0e8e89cf0027c3909bdb7ed8c43093fdb.tar.gz
Issue #24986: Save some bandwidth from svn.python.org
Don't download sources that won't be used.
Diffstat (limited to 'PCbuild/get_externals.bat')
-rw-r--r--PCbuild/get_externals.bat21
1 files changed, 11 insertions, 10 deletions
diff --git a/PCbuild/get_externals.bat b/PCbuild/get_externals.bat
index f9b740fa6a..0b3c08b66e 100644
--- a/PCbuild/get_externals.bat
+++ b/PCbuild/get_externals.bat
@@ -51,16 +51,17 @@ if ERRORLEVEL 9009 (
echo.Fetching external libraries...
-for %%e in (
- bzip2-1.0.6
- nasm-2.11.06
- openssl-1.0.2d
- tcl-core-8.6.4.2
- tk-8.6.4.2
- tix-8.4.3.6
- sqlite-3.8.11.0
- xz-5.0.5
- ) do (
+set libraries=
+set libraries=%libraries% bzip2-1.0.6
+if NOT "%IncludeSSL%"=="false" set libraries=%libraries% nasm-2.11.06
+if NOT "%IncludeSSL%"=="false" set libraries=%libraries% openssl-1.0.2d
+set libraries=%libraries% sqlite-3.8.11.0
+if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tcl-core-8.6.4.2
+if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tk-8.6.4.2
+if NOT "%IncludeTkinter%"=="false" set libraries=%libraries% tix-8.4.3.6
+set libraries=%libraries% xz-5.0.5
+
+for %%e in (%libraries%) do (
if exist %%e (
echo.%%e already exists, skipping.
) else (