diff options
Diffstat (limited to 'python/README.txt')
-rw-r--r-- | python/README.txt | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/python/README.txt b/python/README.txt index da044af..96f1a73 100644 --- a/python/README.txt +++ b/python/README.txt @@ -6,7 +6,7 @@ This directory contains the Python Protocol Buffers runtime library. Normally, this directory comes as part of the protobuf package, available from: - https://developers.google.com/protocol-buffers/ + http://code.google.com/p/protobuf The complete package includes the C++ source code, which includes the Protocol Compiler (protoc). If you downloaded this package from PyPI @@ -43,13 +43,9 @@ Installation $ protoc --version -4) Build and run the tests: +4) Run the tests: - $ python setup.py build - $ python setup.py google_test - - If you want to test c++ implementation, run: - $ python setup.py test --cpp_implementation + $ python setup.py test If some tests fail, this library may not work correctly on your system. Continue at your own risk. @@ -65,13 +61,8 @@ Installation 5) Install: $ python setup.py install - or: - $ python setup.py install --cpp_implementation This step may require superuser privileges. - NOTE: To use C++ implementation, you need to install C++ protobuf runtime - library of the same version and export the environment variable before this - step. See the "C++ Implementation" section below for more details. Usage ===== @@ -79,27 +70,4 @@ Usage The complete documentation for Protocol Buffers is available via the web at: - https://developers.google.com/protocol-buffers/ - -C++ Implementation -================== - -The C++ implementation for Python messages is built as a Python extension to -improve the overall protobuf Python performance. - -To use the C++ implementation, you need to: -1) Install the C++ protobuf runtime library, please see instructions in the - parent directory. -2) Export an environment variable: - - $ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp - $ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 - -You need to export this variable before running setup.py script to build and -install the extension. You must also set the variable at runtime, otherwise -the pure-Python implementation will be used. In a future release, we will -change the default so that C++ implementation is used whenever it is available. -It is strongly recommended to run `python setup.py test` after setting the -variable to "cpp", so the tests will be against C++ implemented Python -messages. - + http://code.google.com/apis/protocolbuffers/ |