From e0f69e18bb8fcc430de7cfe63d0f3526af9ea93f Mon Sep 17 00:00:00 2001 From: Alex Kaszynski Date: Wed, 19 Jul 2023 14:10:55 -0600 Subject: [PATCH] do not use platform --- setup.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/setup.py b/setup.py index a76cd62..0d5dca9 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ """Setup for pyminiply.""" -import platform from io import open as io_open import os import sys @@ -13,10 +12,7 @@ # Define macros for cython macros = [] if os.name == "nt": # windows - if platform.compiler().startswith('MS'): # MSVC - extra_compile_args = ["/O2", "/w", "/GS"] - else: # assuming GCC/MinGW or similar - extra_compile_args = ["-std=c++11", "-O2", "-w"] + extra_compile_args = ["/O2", "/w", "/GS"] elif os.name == "posix": # linux org mac os if sys.platform == "linux": extra_compile_args = ["-std=gnu++11", "-O3", "-w"]