Skip to content

Commit

Permalink
Use platform.uname() instead of os.uname()
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
AEFeinstein committed Jul 4, 2019
1 parent a34684c commit b4305be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -38,6 +38,7 @@
import pkg_resources
from Cython.Build import cythonize

import platform

def glob_recursive(directory, file_pattern="*"):
""" Like glob, but recurses sub-dirs.
Expand Down Expand Up @@ -466,7 +467,7 @@ def run(self):
extra_compile_args_pitch = []
extra_link_args_pitch = []
# As of mac os version 10.13.6 (high sierra), xcode 10 is supported. Xcode 10 requires the use of the libc++ standard library.
if os.uname()[0] == "Darwin" and pkg_resources.parse_version(os.uname()[2]) >= pkg_resources.parse_version("17.7.0"):
if platform.uname()[0] == "Darwin" and pkg_resources.parse_version(platform.uname()[2]) >= pkg_resources.parse_version("17.7.0"):
print("success")
extra_compile_args_pitch.append("-stdlib=libc++")
extra_link_args_pitch.append("-stdlib=libc++")
Expand Down

0 comments on commit b4305be

Please sign in to comment.