diff options
author | Masood Malekghassemi <soltanmm@users.noreply.github.com> | 2015-04-07 13:26:02 -0700 |
---|---|---|
committer | Masood Malekghassemi <soltanmm@users.noreply.github.com> | 2015-04-07 13:26:02 -0700 |
commit | 106882854b40775ac570fbf307ad978e808d8e62 (patch) | |
tree | a0c1e7685feafc98bd3676b953fb7afef954846b /src | |
parent | 9a532afc28d7a93688ed1008c2e5b1d47a5183cf (diff) | |
parent | 8eac91eaf4200e4f3bae1486d22e54e4710ae162 (diff) |
Merge pull request #1202 from atombender/fix-python-build-on-mac
Python: OS X doesn't have librt, so don't link to it.
Diffstat (limited to 'src')
-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), |