diff options
author | Alexander Staubo <alex@bengler.no> | 2015-04-06 12:06:22 -0400 |
---|---|---|
committer | Alexander Staubo <alex@bengler.no> | 2015-04-07 15:19:37 -0400 |
commit | 8eac91eaf4200e4f3bae1486d22e54e4710ae162 (patch) | |
tree | aea2fc9bfafbf6610a8ee99ccb90425222f99472 /src/python | |
parent | bc83a5ea0e5302dc103174e680976704c8639fb3 (diff) |
OS X doesn't have librt, so don't link to it.
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/src/setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/src/setup.py b/src/python/src/setup.py index 1e45a8e8d5..32ac41e285 100644 --- a/src/python/src/setup.py +++ b/src/python/src/setup.py @@ -31,6 +31,7 @@ from distutils import core as _core import setuptools +import sys _EXTENSION_SOURCES = ( 'grpc/_adapter/_c.c', @@ -50,8 +51,9 @@ _EXTENSION_INCLUDE_DIRECTORIES = ( _EXTENSION_LIBRARIES = ( 'grpc', 'gpr', - 'rt', ) +if not "darwin" in sys.platform: + _EXTENSION_LIBRARIES += ('rt',) _EXTENSION_MODULE = _core.Extension( 'grpc._adapter._c', sources=list(_EXTENSION_SOURCES), |