diff --git a/pyinstaller.spec b/pyinstaller.spec index bd8786a..8b01a97 100644 --- a/pyinstaller.spec +++ b/pyinstaller.spec @@ -93,7 +93,8 @@ exe = EXE(pyz, # codesign_identity = None, # entitlements_file = None, # contents_directory = "_internal", - strip = shutil.which("strip") is not None, + # using strip on windows results in "ImportError: Can't connect to HTTPS URL because the SSL module is not available." + strip = not platform.startswith("win") and shutil.which("strip") is not None, upx = shutil.which("upx") is not None, upx_exclude = [], runtime_tmpdir = None,