@@ -26,12 +26,17 @@ Features to be Added
2626
2727Installation
2828------------
29- A package hasn't been put on pypi yet, so for now, run:
29+ If you would like to use the optional C extensions, please follow
30+ the instructions in the section below before installing the driver.
3031
31- .. code-block :: bash
32+ Installation through pip is recommended:
3233
33- $ sudo pip install futures scales # install dependencies
34- $ sudo python setup.py install
34+ $ sudo pip install cassandra-driver
35+
36+ If you want to install manually, you can instead do:
37+
38+ $ sudo pip install futures scales # install dependencies
39+ $ sudo python setup.py install
3540
3641C Extensions
3742^^^^^^^^^^^^
@@ -47,15 +52,11 @@ To compile the extenions, ensure that GCC and the Python headers are available.
4752
4853On Ubuntu and Debian, this can be accomplished by running:
4954
50- .. code-block :: bash
51-
52- $ sudo apt-get install build-essential python-dev
55+ $ sudo apt-get install build-essential python-dev
5356
5457On RedHat and RedHat-based systems like CentOS and Fedora:
5558
56- .. code-block :: bash
57-
58- $ sudo yum install gcc python-devel
59+ $ sudo yum install gcc python-devel
5960
6061On OS X, homebrew installations of Python should provide the necessary headers.
6162
@@ -68,29 +69,23 @@ a C extension.
6869If you're on Linux, you should be able to install libev
6970through a package manager. For example, on Debian/Ubuntu:
7071
71- .. code-block :: bash
72-
73- $ sudo apt-get install libev4 libev-dev
72+ $ sudo apt-get install libev4 libev-dev
7473
7574If you're on Mac OS X, you should be able to install libev
7675through `Homebrew <http://brew.sh/ >`_. For example, on Mac OS X:
7776
78- .. code-block :: bash
79-
80- $ brew install libev
77+ $ brew install libev
8178
8279If successful, you should be able to build and install the extension
8380(just using ``setup.py build `` or ``setup.py install ``) and then use
8481the libev event loop by doing the following
8582
86- .. code-block :: python
87-
88- >> > from cassandra.io.libevreactor import LibevConnection
89- >> > from cassandra.cluster import Cluster
83+ >>> from cassandra.io.libevreactor import LibevConnection
84+ >>> from cassandra.cluster import Cluster
9085
91- >> > cluster = Cluster()
92- >> > cluster.connection_class = LibevConnection
93- >> > session = cluster.connect()
86+ >>> cluster = Cluster()
87+ >>> cluster.connection_class = LibevConnection
88+ >>> session = cluster.connect()
9489
9590License
9691-------
0 commit comments