From 808457227f038826782ae0388157ac9c3cdf846e Mon Sep 17 00:00:00 2001 From: lengyue Date: Tue, 30 May 2023 00:48:39 -0400 Subject: [PATCH] fix command for windows build --- build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.py b/build.py index 85c775d..1adc72f 100644 --- a/build.py +++ b/build.py @@ -5,6 +5,10 @@ package_type = os.environ.get("PACKAGE_TYPE", "onedir") assert package_type in ("onedir", "onefile"), "PACKAGE_TYPE must be onedir or onefile" +# upgrade dependencies manually +if platform.system() == "Windows": + sp.check_call(["pip", "install", "--upgrade", "pywin32", "cffi"]) + sep = ";" if platform.system() == "Windows" else ":" args = [