浏览代码

change python README.txt

jieluo@google.com 11 年之前
父节点
当前提交
5dd5f0d09a
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8 3
      python/README.txt

+ 8 - 3
python/README.txt

@@ -46,8 +46,10 @@ Installation
 4) Build and run the tests:
 4) Build and run the tests:
 
 
      $ python setup.py build
      $ python setup.py build
-     $ python setup.py test
-     $ python setup.py exttest  # To test C++ implementation (see below).
+     $ python setup.py google_test
+     
+     if you want to test c++ implementation, run:
+     $ python setup.py google_test --cpp_implementation
 
 
    If some tests fail, this library may not work correctly on your
    If some tests fail, this library may not work correctly on your
    system.  Continue at your own risk.
    system.  Continue at your own risk.
@@ -63,6 +65,8 @@ Installation
 5) Install:
 5) Install:
 
 
      $ python setup.py install
      $ python setup.py install
+     or:
+     $ python setup.py install --cpp_implementation
 
 
    This step may require superuser privileges.
    This step may require superuser privileges.
    NOTE: To use C++ implementation, you need to install C++ protobuf runtime
    NOTE: To use C++ implementation, you need to install C++ protobuf runtime
@@ -97,7 +101,8 @@ 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
 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
 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.
 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
+It is strongly recommended to run `python setup.py google_test
+--cpp_implementation` after setting the
 variable to "cpp", so the tests will be against C++ implemented Python
 variable to "cpp", so the tests will be against C++ implemented Python
 messages.
 messages.