X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tools%2Fdistrib%2Fpython%2Fgrpcio_tools%2Fsetup.py;h=164088bf7bfaadf6123a5521122f6a2a89bab9f0;hb=754713aa17cd9d27a649dd3a8a1657ddb01bca1a;hp=f216eeb2cf25329bcb079f0a4cedf9cbb00bff66;hpb=4e119ce02c8060dca7468c02e6923f07a1e8c0bf;p=platform%2Fupstream%2Fgrpc.git diff --git a/tools/distrib/python/grpcio_tools/setup.py b/tools/distrib/python/grpcio_tools/setup.py index f216eeb..164088b 100644 --- a/tools/distrib/python/grpcio_tools/setup.py +++ b/tools/distrib/python/grpcio_tools/setup.py @@ -150,15 +150,15 @@ elif "linux" in sys.platform or "darwin" in sys.platform: DEFINE_MACROS += (('HAVE_PTHREAD', 1),) # By default, Python3 distutils enforces compatibility of -# c plugins (.so files) with the OSX version Python3 was built with. -# For Python3.4, this is OSX 10.6, but we need Thread Local Support (__thread) -if 'darwin' in sys.platform and PY3: +# c plugins (.so files) with the OSX version Python was built with. +# We need OSX 10.10, the oldest which supports C++ thread_local. +if 'darwin' in sys.platform: mac_target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') if mac_target and (pkg_resources.parse_version(mac_target) < - pkg_resources.parse_version('10.9.0')): - os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9' + pkg_resources.parse_version('10.10.0')): + os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.10' os.environ['_PYTHON_HOST_PLATFORM'] = re.sub( - r'macosx-[0-9]+\.[0-9]+-(.+)', r'macosx-10.9-\1', + r'macosx-[0-9]+\.[0-9]+-(.+)', r'macosx-10.10-\1', util.get_platform()) @@ -232,6 +232,7 @@ setuptools.setup( install_requires=[ 'protobuf>=3.5.0.post1, < 4.0dev', 'grpcio>={version}'.format(version=grpc_version.VERSION), + 'setuptools', ], package_data=package_data(), )