Lines Matching +full:test +full:- +full:cython
7 # http://www.apache.org/licenses/LICENSE-2.0
46 # Redirect the manifest template from MANIFEST.in to PYTHON-MANIFEST.in.
47 egg_info.manifest_maker.template = 'PYTHON-MANIFEST.in'
55 ABSL_INCLUDE = (os.path.join('third_party', 'abseil-cpp'),)
72 SSL_INCLUDE = (os.path.join('third_party', 'boringssl-with-bazel', 'src',
76 'upb-generated'),)
78 'upbdefs-generated'),)
88 # Break import-style to ensure we can actually find our in-repo dependencies.
102 'Development Status :: 5 - Production/Stable',
126 # Example value: "linux-aarch64"
130 # Environment variable to determine whether or not the Cython extension should
131 # *use* Cython or use the generated C files. Note that this requires the C files
132 # to have been generated by building first *with* Cython support. Even if this
134 # present, then it will still attempt to use Cython.
166 # At least on linux, this is normally not needed as we can build manylinux-compatible wheels on lin…
169 # it's difficult to ensure that the crosscompilation toolchain has a high-enough version
170 # of GCC (we require >=5.1) but still uses old-enough libstdc++ symbols.
178 # Python/Cython layers here.
195 # in Cython modules.
206 """Test if linker on system needs libatomic."""
210 cpp_test = subprocess.Popen(cxx + ['-x', 'c++', '-std=c++14', '-'],
217 # Double-check to see if -latomic actually can solve the problem.
220 ['-x', 'c++', '-std=c++14', '-', '-latomic'],
232 # We can also use these variables as a way to inject environment-specific
233 # compiler/linker flags. We assume GCC-like compilers and/or MinGW as a
238 EXTRA_ENV_COMPILE_ARGS = ' -std=c++14'
241 EXTRA_ENV_COMPILE_ARGS += ' -D_hypot=hypot'
244 # envvars) without adding yet more GRPC-specific envvars.
245 # See https://sourceforge.net/p/mingw-w64/bugs/363/
247 … EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime32 -D_timeb=__timeb32 -D_ftime_s=_ftime32_s'
249 EXTRA_ENV_COMPILE_ARGS += ' -D_ftime=_ftime64 -D_timeb=__timeb64'
255 EXTRA_ENV_COMPILE_ARGS += ' -fvisibility=hidden -fno-wrapv -fno-exceptions'
257 …EXTRA_ENV_COMPILE_ARGS += ' -stdlib=libc++ -fvisibility=hidden -fno-wrapv -fno-exceptions -DHAVE_U…
262 EXTRA_ENV_LINK_ARGS += ' -lpthread'
264 EXTRA_ENV_LINK_ARGS += ' -latomic'
268 ' -static-libgcc -static-libstdc++ -mcrtdll={msvcr}'
269 ' -static -lshlwapi'.format(msvcr=msvcr))
271 EXTRA_ENV_LINK_ARGS += ' -static-libgcc'
277 EXTRA_LINK_ARGS.append('-static-libstdc++')
308 CORE_C_FILES = filter(lambda x: 'third_party/abseil-cpp' not in x,
370 LINUX_X86_64 = 'linux-x86_64'
371 LINUX_ARM = 'linux-arm'
372 LINUX_AARCH64 = 'linux-aarch64'
395 # TODO(zyc): Re-enable c-ares on x64 and x86 windows after fixing the
440 r'macosx-[0-9]+\.[0-9]+-(.+)', r'macosx-10.10-\1',
479 # TODO: the strategy for conditional compiling and exposing the aio Cython
495 'protobuf': 'grpcio-tools>={version}'.format(version=grpc_version.VERSION),
502 import Cython
506 "You requested a Cython build via GRPC_PYTHON_BUILD_WITH_CYTHON, "
507 "but do not have Cython installed. We won't stop you from using "
511 'We could not find Cython. Setup may take 10-20 minutes.\n')
512 SETUP_REQUIRES += ('cython>=0.23',)
546 description='HTTP/2-based RPC framework',
548 author_email='grpc-io@googlegroups.com',
557 long_description_content_type='text/x-rst',