summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-04-20 02:50:35 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-04-20 02:50:35 (GMT)
commit777af30645432cacda5c9b5df940d8fb27a1479c (patch)
treeb326efdbb990374b384ea03a9876201ee02cb84b /Tools
parent3c28c6e4fb311e47dca067458acab234e5a87ad9 (diff)
downloadcpython-777af30645432cacda5c9b5df940d8fb27a1479c.zip
cpython-777af30645432cacda5c9b5df940d8fb27a1479c.tar.gz
cpython-777af30645432cacda5c9b5df940d8fb27a1479c.tar.bz2
Minor fixes to Windows build scripts
Diffstat (limited to 'Tools')
-rw-r--r--Tools/msi/make_zip.py13
-rw-r--r--Tools/msi/testrelease.bat5
2 files changed, 14 insertions, 4 deletions
diff --git a/Tools/msi/make_zip.py b/Tools/msi/make_zip.py
index 0032956..56d6f38 100644
--- a/Tools/msi/make_zip.py
+++ b/Tools/msi/make_zip.py
@@ -30,9 +30,16 @@ def include_in_lib(p):
return False
return True
- if name in {'_ctypes_test.pyd', '_testbuffer.pyd', '_testcapi.pyd', '_testimportmultiple.pyd', 'xxlimited.pyd'}:
- return False
- return p.suffix.lower() not in {'.pyc', '.pyo'}
+ suffix = p.suffix.lower()
+ if suffix == '.pyd':
+ return name not in {
+ '_ctypes_test.pyd',
+ '_testbuffer.pyd',
+ '_testcapi.pyd',
+ '_testimportmultiple.pyd',
+ 'xxlimited.pyd',
+ }
+ return suffix not in {'.pyc', '.pyo'}
def include_in_tools(p):
if p.is_dir() and p.name.lower() in {'scripts', 'i18n', 'pynche', 'demo', 'parser'}:
diff --git a/Tools/msi/testrelease.bat b/Tools/msi/testrelease.bat
index b93306a..a989575 100644
--- a/Tools/msi/testrelease.bat
+++ b/Tools/msi/testrelease.bat
@@ -1,4 +1,4 @@
-@setlocal
+@setlocal enableextensions
@echo off
set D=%~dp0
@@ -51,6 +51,9 @@ exit /B 0
@if not exist "%~1" exit /B 1
+@set EXE=%~1
+@if not "%EXE:embed=%"=="%EXE%" exit /B 0
+
@set EXITCODE=0
@echo Installing %1 into %2
"%~1" /passive /log "%~2\install\log.txt" TargetDir="%~2\Python" Include_debug=1 Include_symbols=1 %~3