aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2015-04-07 13:26:02 -0700
committerGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2015-04-07 13:26:02 -0700
commit106882854b40775ac570fbf307ad978e808d8e62 (patch)
treea0c1e7685feafc98bd3676b953fb7afef954846b /src
parent9a532afc28d7a93688ed1008c2e5b1d47a5183cf (diff)
parent8eac91eaf4200e4f3bae1486d22e54e4710ae162 (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.py4
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),