Skip to content

Commit

Permalink
do not use platform
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski committed Jul 19, 2023
1 parent 18a0272 commit e0f69e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Setup for pyminiply."""
import platform
from io import open as io_open
import os
import sys
Expand All @@ -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"]
Expand Down

0 comments on commit e0f69e1

Please sign in to comment.