diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-12-22 11:13:03 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-12-30 16:09:53 -0800 |
commit | e1abdf2c762cdddfbbd2c916cbc663914e858a01 (patch) | |
tree | 201e38c9feb9f4a2ea2fa88caa9bbca153a3932a /python/setup.py | |
parent | d5fb408ddc281ffcadeb08699e65bb694656d0bd (diff) | |
download | protobuf-e1abdf2c762cdddfbbd2c916cbc663914e858a01.tar.gz protobuf-e1abdf2c762cdddfbbd2c916cbc663914e858a01.tar.bz2 protobuf-e1abdf2c762cdddfbbd2c916cbc663914e858a01.zip |
Fixed compile for Python 3. There are still some crashes though.
Diffstat (limited to 'python/setup.py')
-rwxr-xr-x | python/setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/setup.py b/python/setup.py index 2a5513b7..1223775c 100755 --- a/python/setup.py +++ b/python/setup.py @@ -162,7 +162,7 @@ if __name__ == '__main__': extra_compile_args = ['-Wno-write-strings', '-Wno-invalid-offsetof'] test_conformance.target = 'test_python_cpp' - if "clang" in os.popen('$CC --version').read(): + if "clang" in os.popen('$CC --version 2> /dev/null').read(): extra_compile_args.append('-Wno-shorten-64-to-32') if warnings_as_errors in sys.argv: |