From e1abdf2c762cdddfbbd2c916cbc663914e858a01 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Tue, 22 Dec 2015 11:13:03 -0800 Subject: Fixed compile for Python 3. There are still some crashes though. --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/setup.py') 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: -- cgit v1.2.3