From 8389123c615ca694fb9663cbdb172786b2689e6c Mon Sep 17 00:00:00 2001 From: sebthom Date: Fri, 12 Jan 2024 11:35:30 +0100 Subject: [PATCH] don't use strip on windows. fixes #229 --- pyinstaller.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,