diff options
author | Tamir Duberstein <tamird@gmail.com> | 2015-04-10 15:26:58 -0400 |
---|---|---|
committer | Tamir Duberstein <tamird@gmail.com> | 2015-04-10 15:42:23 -0400 |
commit | d632bc76f1dec959eaa6b2d415e9b3e9cabb9318 (patch) | |
tree | f493b237be553d7af140a2b6a09c8c4c530176e0 /python | |
parent | a46a2e942204c3711a951c4a66baa13b9b7e65b6 (diff) |
[PYTHON] README: explain homebrew shenanigans
Diffstat (limited to 'python')
-rw-r--r-- | python/README.md | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/python/README.md b/python/README.md index bf92a943..c63191a7 100644 --- a/python/README.md +++ b/python/README.md @@ -52,16 +52,34 @@ Installation $ python setup.py build $ python setup.py google_test - To build the C++ implementation run: - $ python setup.py build --cpp_implementation + To build, test, and use the C++ implementation, you must first compile + libprotobuf.so: + + $ (cd .. && make) + + On OS X: + + If you are running a homebrew-provided python, you must make sure another + version of protobuf is not already installed, as homebrew's python will + search /usr/local/lib for libprotobuf.so before it searches ../src/.libs + You can either unlink homebrew's protobuf or install the libprotobuf you + built earlier: - To test and use the C++ implementation, you must make libprotobuf.so - from the C++ build accessible. You can either install the C++ code - you built, or set LD_LIBRARY_PATH: + $ brew unlink protobuf + or + $ (cd .. && make install) - $ (cd .. && make install) - or - $ export LD_LIBRARY_PATH=../src/.libs + On other *nix: + + You must make libprotobuf.so dynamically available. You can either + install libprotobuf you built earlier, or set LD_LIBRARY_PATH: + + $ export LD_LIBRARY_PATH=../src/.libs + or + $ (cd .. && make install) + + To build the C++ implementation run: + $ python setup.py build --cpp_implementation Then run the tests like so: $ python setup.py google_test --cpp_implementation |