From 2b261e9df402f5d058b4b307bf4578be192e2df9 Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Thu, 2 Nov 2023 10:59:19 -0700 Subject: [PATCH] Do not set compile_args on Windows --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 23db406..2ac943b 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,10 @@ PYPY = hasattr(sys, "pypy_version_info") JYTHON = sys.platform.startswith("java") -compile_args = ["-Wall", "-Wextra", "-Wno-unknown-pragmas"] +if os.name == 'nt': + compile_args = [] +else: + compile_args = ["-Wall", "-Wextra", "-Wno-unknown-pragmas"] ext_module = [ Extension(