diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2016-10-07 16:09:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-07 16:09:26 -0700 |
commit | bc3bff165fac28f7ad967d70dcf572ccb062c481 (patch) | |
tree | 99920650a8e9de846e120cf3531d1b7041657e4f | |
parent | b0d62dd71388813658222172a42383eca2e37c06 (diff) | |
download | protobuf-bc3bff165fac28f7ad967d70dcf572ccb062c481.tar.gz protobuf-bc3bff165fac28f7ad967d70dcf572ccb062c481.tar.bz2 protobuf-bc3bff165fac28f7ad967d70dcf572ccb062c481.zip |
Fix python_cpp test on Mac. Link staticly when building extension, so that the extension doesn't require installing protobuf library. (#2232)
-rw-r--r-- | python/tox.ini | 2 | ||||
-rwxr-xr-x | tests.sh | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/python/tox.ini b/python/tox.ini index cf8d5401..1600db21 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -12,7 +12,7 @@ setenv = commands = python setup.py -q build_py python: python setup.py -q build - cpp: python setup.py -q build --cpp_implementation --warnings_as_errors + cpp: python setup.py -q build --cpp_implementation --warnings_as_errors --compile_static_extension python: python setup.py -q test -q cpp: python setup.py -q test -q --cpp_implementation python: python setup.py -q test_conformance @@ -28,7 +28,8 @@ internal_build_cpp() { fi ./autogen.sh - ./configure + ./configure CXXFLAGS="-fPIC" # -fPIC is needed for python cpp test. + # See python/setup.py for more details make -j2 } |