File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ Installation
4848 $ python setup.py build
4949 $ python setup.py google_test
5050
51- if you want to test c++ implementation, run:
52- $ python setup.py test
51+ If you want to test c++ implementation, run:
52+ $ python setup.py test --cpp_implementation
5353
5454 If some tests fail, this library may not work correctly on your
5555 system. Continue at your own risk.
@@ -66,7 +66,7 @@ Installation
6666
6767 $ python setup.py install
6868 or:
69- $ python setup.py install --nocpp_implementation
69+ $ python setup.py install --cpp_implementation
7070
7171 This step may require superuser privileges.
7272 NOTE: To use C++ implementation, you need to install C++ protobuf runtime
@@ -84,8 +84,6 @@ web at:
8484C++ Implementation
8585==================
8686
87- WARNING: This is EXPERIMENTAL and only available for CPython platforms.
88-
8987The C++ implementation for Python messages is built as a Python extension to
9088improve the overall protobuf Python performance.
9189
Original file line number Diff line number Diff line change @@ -138,10 +138,9 @@ def run(self):
138138
139139if __name__ == '__main__' :
140140 ext_module_list = []
141- nocpp = '--nocpp_implementation '
142- if nocpp in sys .argv :
141+ cpp_impl = '--cpp_implementation '
142+ if cpp_impl in sys .argv :
143143 sys .argv .remove (cpp_impl )
144- else :
145144 # C++ implementation extension
146145 ext_module_list .append (Extension (
147146 "google.protobuf.pyext._message" ,
You can’t perform that action at this time.
0 commit comments