You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jr...@apache.org on 2016/04/21 20:08:03 UTC
svn commit: r1740373 - /qpid/trunk/qpid/python/README.md
Author: jross
Date: Thu Apr 21 18:08:03 2016
New Revision: 1740373
URL: http://svn.apache.org/viewvc?rev=1740373&view=rev
Log:
QPID-7207: Improve the Qpid Python install and test instructions
Modified:
qpid/trunk/qpid/python/README.md
Modified: qpid/trunk/qpid/python/README.md
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/README.md?rev=1740373&r1=1740372&r2=1740373&view=diff
==============================================================================
--- qpid/trunk/qpid/python/README.md (original)
+++ qpid/trunk/qpid/python/README.md Thu Apr 21 18:08:03 2016
@@ -19,16 +19,18 @@ Documentation can be found here:
## Getting started
-1. Make sure the Qpid Python client libraries are on your
- PYTHONPATH. If you have extracted the archive to the directory
- INSTALLPATH, the following export will work:
+1. Make sure the Qpid Python client libraries are on your PYTHONPATH.
+ Extract the archive and add the local directory to your PYTHONPATH:
- $ export PYTHONPATH=${PYTHONPATH}:${INSTALLPATH}/qpid-0.8/python
+ $ tar -xf qpid-python-VERSION.tar.gz
+ $ cd qpid-python-VERSION
+ $ export PYTHONPATH=$PWD:$PYTHONPATH
2. Make sure a broker is running.
3. Run the 'hello' example from qpid-0.8/python/examples/api:
+ $ cd examples/api
$ ./hello
Hello world!
@@ -69,17 +71,21 @@ selected as follows:
See the qpid-python-test usage for for additional options:
- ./qpid-python-test -h
+ $ ./qpid-python-test -h
## Installation
Other Qpid components depend on Qpid Python for testing. You can use
setup.py to install Qpid Python to a standard location:
+ # User-local install
+
$ python setup.py install --user
$ export PYTHONPATH=$HOME/.local/lib/python2.7/site-packages
$ export PATH=$HOME/.local/bin:$PATH
[or]
- $ python setup.py install # Uses established system paths
+ # System-wide install
+
+ $ sudo python setup.py install
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org