Lines Matching +full:grpcio +full:- +full:sys +full:-
7 # http://www.apache.org/licenses/LICENSE-2.0
36 import sys
44 # Redirect the manifest template from MANIFEST.in to PYTHON-MANIFEST.in.
45 egg_info.manifest_maker.template = 'PYTHON-MANIFEST.in'
47 PY3 = sys.version_info.major == 3
48 PYTHON_STEM = os.path.join('src', 'python', 'grpcio')
53 ABSL_INCLUDE = (os.path.join('third_party', 'abseil-cpp'),)
60 if 'darwin' in sys.platform:
62 if 'freebsd' in sys.platform:
64 if 'linux' in sys.platform:
66 if 'openbsd' in sys.platform:
69 SSL_INCLUDE = (os.path.join('third_party', 'boringssl-with-bazel', 'src',
73 'upb-generated'),)
75 'upbdefs-generated'),)
82 sys.path.insert(0, os.path.abspath(PYTHON_STEM))
84 # Break import-style to ensure we can actually find our in-repo dependencies.
97 'Development Status :: 5 - Production/Stable',
123 # Example value: "linux-aarch64"
158 # At least on linux, this is normally not needed as we can build manylinux-compatible wheels on lin…
161 # it's difficult to ensure that the crosscompilation toolchain has a high-enough version
162 # of GCC (we require >4.9) but still uses old-enough libstdc++ symbols.
202 cpp_test = subprocess.Popen([cxx, '-x', 'c++', '-std=c++11', '-'],
209 # Double-check to see if -latomic actually can solve the problem.
212 [cxx, '-x', 'c++', '-std=c++11', '-latomic', '-'],
224 # We can also use these variables as a way to inject environment-specific
225 # compiler/linker flags. We assume GCC-like compilers and/or MinGW as a
230 EXTRA_ENV_COMPILE_ARGS = ' -std=c++11'
231 if 'win32' in sys.platform:
232 if sys.version_info < (3, 5):
233 EXTRA_ENV_COMPILE_ARGS += ' -D_hypot=hypot'
236 # envvars) without adding yet more GRPC-specific envvars.
237 # See https://sourceforge.net/p/mingw-w64/bugs/363/
239 … EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime32 -D_timeb=__timeb32 -D_ftime_s=_ftime32_s'
241 EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime64 -D_timeb=__timeb64'
246 elif "linux" in sys.platform:
247 EXTRA_ENV_COMPILE_ARGS += ' -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions'
248 elif "darwin" in sys.platform:
249 EXTRA_ENV_COMPILE_ARGS += ' -stdlib=libc++ -fvisibility=hidden -fno-wrapv -fno-exceptions'
253 if "linux" in sys.platform or "darwin" in sys.platform:
254 EXTRA_ENV_LINK_ARGS += ' -lpthread'
256 EXTRA_ENV_LINK_ARGS += ' -latomic'
257 elif "win32" in sys.platform and sys.version_info < (3, 5):
260 ' -static-libgcc -static-libstdc++ -mcrtdll={msvcr}'
261 ' -static -lshlwapi'.format(msvcr=msvcr))
262 if "linux" in sys.platform:
263 EXTRA_ENV_LINK_ARGS += ' -Wl,-wrap,memcpy -static-libgcc'
269 EXTRA_LINK_ARGS.append('-static-libstdc++')
278 if "win32" in sys.platform:
307 if "linux" in sys.platform:
309 if not "win32" in sys.platform:
311 if "win32" in sys.platform:
336 LINUX_X86_64 = 'linux-x86_64'
337 LINUX_ARM = 'linux-arm'
338 LINUX_AARCH64 = 'linux-aarch64'
358 if "win32" in sys.platform:
359 # TODO(zyc): Re-enable c-ares on x64 and x86 windows after fixing the
370 elif sys.version_info >= (3, 5):
382 if "linux" in sys.platform or "darwin" in sys.platform:
393 if 'darwin' in sys.platform:
400 r'macosx-[0-9]+\.[0-9]+-(.+)', r'macosx-10.10-\1',
458 'protobuf': 'grpcio-tools>={version}'.format(version=grpc_version.VERSION),
470 sys.stderr.write(
475 sys.stderr.write(
476 'We could not find Cython. Setup may take 10-20 minutes.\n')
509 name='grpcio',
511 description='HTTP/2-based RPC framework',
513 author_email='grpc-io@googlegroups.com',