README.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Protocol Buffers - Google's data interchange format
  2. Copyright 2008 Google Inc.
  3. This directory contains the Python Protocol Buffers runtime library.
  4. Normally, this directory comes as part of the protobuf package, available
  5. from:
  6. http://code.google.com/p/protobuf
  7. The complete package includes the C++ source code, which includes the
  8. Protocol Compiler (protoc). If you downloaded this package from PyPI
  9. or some other Python-specific source, you may have received only the
  10. Python part of the code. In this case, you will need to obtain the
  11. Protocol Compiler from some other source before you can use this
  12. package.
  13. Installation
  14. ============
  15. 1) Make sure you have Python 2.4 or newer. If in doubt, run:
  16. $ python -V
  17. 2) If you do not have setuptools installed, note that it will be
  18. downloaded and installed automatically as soon as you run setup.py.
  19. If you would rather install it manually, you may do so by following
  20. the instructions on this page:
  21. http://peak.telecommunity.com/DevCenter/EasyInstall#installation-instructions
  22. 3) Build the C++ code, or install a binary distribution of protoc. If
  23. you install a binary distribution, make sure that it is the same
  24. version as this package. If in doubt, run:
  25. $ protoc --version
  26. 4) Run the tests:
  27. $ python setup.py test
  28. If some tests fail, this library may not work correctly on your
  29. system. Continue at your own risk.
  30. Please note that there is a known problem with some versions of
  31. Python on Cygwin which causes the tests to fail after printing the
  32. error: "sem_init: Resource temporarily unavailable". This appears
  33. to be a bug either in Cygwin or in Python:
  34. http://www.cygwin.com/ml/cygwin/2005-07/msg01378.html
  35. We do not know if or when it might me fixed. We also do not know
  36. how likely it is that this bug will affect users in practice.
  37. 5) Install:
  38. $ python setup.py install
  39. This step may require superuser privileges.
  40. Usage
  41. =====
  42. The complete documentation for Protocol Buffers is available via the
  43. web at:
  44. http://code.google.com/apis/protocolbuffers/