summaryrefslogtreecommitdiffstats
path: root/Tools/msi/make_zip.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-05-02 22:32:14 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-05-02 22:32:14 (GMT)
commit6b4c63dea5a1e470849a6925c1b29faea2b01636 (patch)
tree3a486d54a248a7fc782447e7383718ceb29cffb5 /Tools/msi/make_zip.py
parent19694abd71150a4a86c97eb9e2d36859260fa907 (diff)
downloadcpython-6b4c63dea5a1e470849a6925c1b29faea2b01636.zip
cpython-6b4c63dea5a1e470849a6925c1b29faea2b01636.tar.gz
cpython-6b4c63dea5a1e470849a6925c1b29faea2b01636.tar.bz2
Makes embedded distribution a plain ZIP file and corrects pyd exclusion.
Diffstat (limited to 'Tools/msi/make_zip.py')
-rw-r--r--Tools/msi/make_zip.py25
1 files changed, 14 insertions, 11 deletions
diff --git a/Tools/msi/make_zip.py b/Tools/msi/make_zip.py
index 56d6f38..368b4ec 100644
--- a/Tools/msi/make_zip.py
+++ b/Tools/msi/make_zip.py
@@ -14,7 +14,19 @@ DEBUG_RE = re.compile(r'_d\.(pyd|dll|exe)$', re.IGNORECASE)
PYTHON_DLL_RE = re.compile(r'python\d\d?\.dll$', re.IGNORECASE)
def is_not_debug(p):
- return not DEBUG_RE.search(p.name) and not TKTCL_RE.search(p.name)
+ if DEBUG_RE.search(p.name):
+ return False
+
+ if TKTCL_RE.search(p.name):
+ return False
+
+ return p.name.lower() not in {
+ '_ctypes_test.pyd',
+ '_testbuffer.pyd',
+ '_testcapi.pyd',
+ '_testimportmultiple.pyd',
+ 'xxlimited.pyd',
+ }
def is_not_debug_or_python(p):
return is_not_debug(p) and not PYTHON_DLL_RE.search(p.name)
@@ -31,14 +43,6 @@ def include_in_lib(p):
return True
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):
@@ -153,8 +157,7 @@ def main():
subprocess.check_call([
str(rar),
"a",
- "-m5", "-ed", "-ep1", "-s", "-r",
- "-sfxwincon.sfx",
+ "-ed", "-ep1", "-s", "-r",
str(out),
str(temp / '*')
])