Skip to content

Commit b822e7f

Browse files
committed
use code blocks where appropriate
1 parent 844f04d commit b822e7f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/installation.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ In environments where performance is less important, it may be worth it to
3333
You can also use ``CASS_DRIVER_BUILD_CONCURRENCY`` to increase the number of
3434
threads used to build the driver and any C extensions:
3535

36+
.. code-block:: bash
37+
3638
$ # installing from source
3739
$ CASS_DRIVER_BUILD_CONCURRENCY=8 python setup.py install
3840
$ # installing from pip
@@ -41,6 +43,8 @@ threads used to build the driver and any C extensions:
4143
Finally, you can `build a wheel <https://packaging.python.org/tutorials/distributing-packages/#wheels>`_ from the driver's source and distribute that to computers
4244
that depend on it. For example:
4345

46+
.. code-block:: bash
47+
4448
$ git clone https://github.com/datastax/python-driver.git
4549
$ cd python-driver
4650
$ git checkout 3.14.0 # or other desired tag
@@ -52,6 +56,8 @@ that depend on it. For example:
5256
5357
Then, on the remote machine or machines, simply
5458

59+
.. code-block:: bash
60+
5561
$ pip install /remote_dir/cassandra_driver-3.14.0-cp27-cp27mu-linux_x86_64.whl
5662
5763
Note that the wheel created this way is a `platform wheel
@@ -64,7 +70,9 @@ If you're installing on OSX and have XCode 5.1 installed, you may see an error l
6470

6571
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
6672

67-
To fix this, re-run the installation with an extra compilation flag::
73+
To fix this, re-run the installation with an extra compilation flag:
74+
75+
.. code-block:: bash
6876
6977
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install cassandra-driver
7078

0 commit comments

Comments
 (0)