• Home
  • Raw
  • Download

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)
145 # _clean is an old-style class, so super() doesn't work.
168 # _build_py is an old-style class, so super() doesn't work.
190 # linux the suffix is ".cpython-XYZ-x86_64-linux-gnu.so" When
193 # and we end up with a well-formed wheel.
198 filename = filename[:-len(orig_ext_suffix)] + new_ext_suffix
208 '--failure_list failure_list_python-post26.txt')
222 warnings_as_errors = '--warnings_as_errors'
223 if GetOptionFromArgv('--cpp_implementation'):
224 # Link libprotobuf.a and libprotobuf-lite.a statically with the
226 # -fPIC for this to work.
227 compile_static_ext = GetOptionFromArgv('--compile_static_extension')
233 '../src/.libs/libprotobuf-lite.a']
248 '-Wl,-exported_symbol,_%s' % message_init_symbol
251 '-Wl,-exported_symbol,_%s' % api_implementation_init_symbol
255 extra_compile_args.append('-Wno-write-strings')
256 extra_compile_args.append('-Wno-invalid-offsetof')
257 extra_compile_args.append('-Wno-sign-compare')
258 extra_compile_args.append('-Wno-unused-variable')
259 extra_compile_args.append('-std=c++11')
262 extra_compile_args.append('-Wno-shorten-64-to-32')
263 extra_compile_args.append('-Wno-deprecated-register')
274 r'macosx-[0-9]+\.[0-9]+-(.+)', r'macosx-10.9-\1',
279 extra_compile_args.append('-D_hypot=hypot')
281 # https://github.com/tpaviot/pythonocc-core/issues/48
283 extra_compile_args.append('-DMS_WIN64')
289 if 'clang' in os.popen('$CC --version 2> /dev/null').read():
290 extra_compile_args.append('-Wno-shorten-64-to-32')
293 extra_compile_args.append('-Werror')
312 ['-DPYTHON_PROTO2_CPP_IMPL_V2']),
327 url='https://developers.google.com/protocol-buffers/',
330 license='BSD-3-Clause',