Installing RCFProto using setup.py
- From the root directory of the distribution, change directory to the src directory:
- Install the RCFProto Python module (and Google.ProtocolBuffers, if not already installed):
cd python\src
python setup.py install
As an alternative to setup.py, the Win32 distribution provides 4 Python eggs, for use with easy_install. To install these, you will need to know the version and architecture of your Python interpreter:
- For 32 bit Python 2.6:
- For 64 bit Python 2.6:
- For 32 bit Python 2.7:
- For 64 bit Python 2.7:
easy_install --allow-hosts=*.python.org bin\x86\rcfproto-1.0-py2.6.egg
easy_install --allow-hosts=*.python.org bin\x64\rcfproto-1.0-py2.6.egg
easy_install --allow-hosts=*.python.org bin\x86\rcfproto-1.0-py2.7.egg
easy_install --allow-hosts=*.python.org bin\x64\rcfproto-1.0-py2.7.egg
Running the Python demo server and client
- From the root directory of the distribution, change directory to the demo directory:
- Generate source code for Protocol Buffer messages:
- Run the demo server:
- Run the demo client (in a different command prompt):
cd python\demo
..\bin\protoc.exe Demo.proto --python_out=.
python DemoServer.py
python DemoClient.py