From 3e371c2bfb4854588351ac69af38128cbb9ad28d Mon Sep 17 00:00:00 2001 From: Daniel Tan Date: Fri, 2 Apr 2021 13:49:36 +0800 Subject: [PATCH] (cleanup) cleanup fix as per Patrick feedback --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 52c241a0bb..fc70445f2d 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ # for C/ObjC but not for C++ class BuildExt(build_ext): def build_extensions(self): - if '-Wstrict-prototypes' in self.compiler.compiler_so: + if os.name != "nt" and '-Wstrict-prototypes' in self.compiler.compiler_so: self.compiler.compiler_so.remove('-Wstrict-prototypes') super().build_extensions() @@ -176,7 +176,7 @@ def main(): "bin/hummingbot.py", "bin/hummingbot_quickstart.py" ], - cmdclass={'build_ext': BuildExt} if os.name != "nt" else {}, + cmdclass={'build_ext': BuildExt}, )