• Home
  • Raw
  • Download

Lines Matching +full:grpcio +full:- +full:sys +full:-

7 #     http://www.apache.org/licenses/LICENSE-2.0
26 import sys
32 # Redirect the manifest template from MANIFEST.in to PYTHON-MANIFEST.in.
33 egg_info.manifest_maker.template = 'PYTHON-MANIFEST.in'
35 PY3 = sys.version_info.major == 3
36 PYTHON_STEM = os.path.join('src', 'python', 'grpcio')
44 if 'darwin' in sys.platform:
46 if 'freebsd' in sys.platform:
48 if 'linux' in sys.platform:
50 if 'openbsd' in sys.platform:
57 sys.path.insert(0, os.path.abspath(PYTHON_STEM))
59 # Break import-style to ensure we can actually find our in-repo dependencies.
70 'Development Status :: 5 - Production/Stable',
120 # We can also use these variables as a way to inject environment-specific
121 # compiler/linker flags. We assume GCC-like compilers and/or MinGW as a
126 EXTRA_ENV_COMPILE_ARGS = ' -std=c++11'
127 if 'win32' in sys.platform and sys.version_info < (3, 5):
128 EXTRA_ENV_COMPILE_ARGS += ' -D_hypot=hypot'
131 # envvars) without adding yet more GRPC-specific envvars.
132 # See https://sourceforge.net/p/mingw-w64/bugs/363/
134 EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime32 -D_timeb=__timeb32 -D_ftime_s=_ftime32_s'
136 EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime64 -D_timeb=__timeb64'
137 elif "linux" in sys.platform:
138 EXTRA_ENV_COMPILE_ARGS += ' -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions'
139 elif "darwin" in sys.platform:
140 EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv -fno-exceptions'
141 EXTRA_ENV_COMPILE_ARGS += ' -DPB_FIELD_16BIT'
145 if "linux" in sys.platform or "darwin" in sys.platform:
146 EXTRA_ENV_LINK_ARGS += ' -lpthread'
147 elif "win32" in sys.platform and sys.version_info < (3, 5):
150 # influence on the linkage outcome on MinGW for non-C++ programs.
152 ' -static-libgcc -static-libstdc++ -mcrtdll={msvcr} '
153 '-static'.format(msvcr=msvcr))
154 if "linux" in sys.platform:
155 EXTRA_ENV_LINK_ARGS += ' -Wl,-wrap,memcpy -static-libgcc'
167 if "win32" in sys.platform:
188 if "linux" in sys.platform:
190 if not "win32" in sys.platform:
192 if "win32" in sys.platform:
204 if "win32" in sys.platform:
205 # TODO(zyc): Re-enble c-ares on x64 and x86 windows after fixing the
212 elif sys.version_info >= (3, 5):
221 if "linux" in sys.platform or "darwin" in sys.platform:
230 if 'darwin' in sys.platform and PY3:
236 r'macosx-[0-9]+\.[0-9]+-(.+)',
237 r'macosx-10.7-\1',
246 if "darwin" in sys.platform:
295 sys.stderr.write(
300 sys.stderr.write(
301 'We could not find Cython. Setup may take 10-20 minutes.\n')
333 name='grpcio',
335 description='HTTP/2-based RPC framework',
337 author_email='grpc-io@googlegroups.com',