diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-04-20 02:50:35 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-04-20 02:50:35 (GMT) |
commit | 777af30645432cacda5c9b5df940d8fb27a1479c (patch) | |
tree | b326efdbb990374b384ea03a9876201ee02cb84b /Tools/msi/make_zip.py | |
parent | 3c28c6e4fb311e47dca067458acab234e5a87ad9 (diff) | |
download | cpython-777af30645432cacda5c9b5df940d8fb27a1479c.zip cpython-777af30645432cacda5c9b5df940d8fb27a1479c.tar.gz cpython-777af30645432cacda5c9b5df940d8fb27a1479c.tar.bz2 |
Minor fixes to Windows build scripts
Diffstat (limited to 'Tools/msi/make_zip.py')
-rw-r--r-- | Tools/msi/make_zip.py | 13 |
1 files changed, 10 insertions, 3 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'}: |