Lines Matching +full:pylint +full:- +full:exit
5 # pylint:disable=missing-module-docstring
6 # pylint:disable=g-bad-import-order
17 # pylint:disable=g-importing-member
18 # pylint:disable=g-multiple-import
55 exec(version_file.read(), globals()) # pylint:disable=exec-used
56 return __version__ # pylint:disable=undefined-variable
66 require: if True, exit immediately when a path is not found.
81 sys.exit(-1)
87 sys.exit(-1)
89 protoc_command = [protoc, '-I../src', '-I.', '--python_out=.', source]
91 sys.exit(-1)
148 # _clean is an old-style class, so super() doesn't work.
171 # _build_py is an old-style class, so super() doesn't work.
193 # linux the suffix is ".cpython-XYZ-x86_64-linux-gnu.so" When
196 # and we end up with a well-formed wheel.
201 filename = filename[:-len(orig_ext_suffix)] + new_ext_suffix
211 '--failure_list failure_list_python-post26.txt')
225 warnings_as_errors = '--warnings_as_errors'
226 if GetOptionFromArgv('--cpp_implementation'):
227 # Link libprotobuf.a and libprotobuf-lite.a statically with the
229 # -fPIC for this to work.
230 compile_static_ext = GetOptionFromArgv('--compile_static_extension')
236 '../src/.libs/libprotobuf-lite.a']
251 '-Wl,-exported_symbol,_%s' % message_init_symbol
254 '-Wl,-exported_symbol,_%s' % api_implementation_init_symbol
258 extra_compile_args.append('-Wno-write-strings')
259 extra_compile_args.append('-Wno-invalid-offsetof')
260 extra_compile_args.append('-Wno-sign-compare')
261 extra_compile_args.append('-Wno-unused-variable')
262 extra_compile_args.append('-std=c++11')
265 extra_compile_args.append('-Wno-shorten-64-to-32')
266 extra_compile_args.append('-Wno-deprecated-register')
277 r'macosx-[0-9]+\.[0-9]+-(.+)', r'macosx-10.9-\1',
282 extra_compile_args.append('-D_hypot=hypot')
284 # https://github.com/tpaviot/pythonocc-core/issues/48
286 extra_compile_args.append('-DMS_WIN64')
292 if 'clang' in os.popen('$CC --version 2> /dev/null').read():
293 extra_compile_args.append('-Wno-shorten-64-to-32')
296 extra_compile_args.append('-Werror')
315 ['-DPYTHON_PROTO2_CPP_IMPL_V2']),
330 url='https://developers.google.com/protocol-buffers/',
333 license='BSD-3-Clause',