You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstart.rst
+34-55Lines changed: 34 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,10 @@ Quickstart / Installation
4
4
5
5
The BigchainDB Python Driver depends on:
6
6
7
-
1. ``libffi/ffi.h``
8
-
2. ``libssl-dev``
9
-
3. Python 3.5+
10
-
4. A recent Python 3 version of ``pip``
11
-
5. A recent Python 3 version of ``setuptools``
7
+
1. Python 3.5+
8
+
2. A recent Python 3 version of ``pip``
9
+
3. A recent Python 3 version of ``setuptools``
10
+
4. cryptography and cryptoconditions
12
11
13
12
If you're missing one of those, then see below. Otherwise, you can install the BigchainDB Python Driver (``bigchaindb_driver``) using:
14
13
@@ -22,55 +21,8 @@ Next: :doc:`determine the BigchainDB Root URL of the BigchainDB node or cluster
22
21
How to Install the Dependencies
23
22
-------------------------------
24
23
25
-
Dependency 1: ffi.h
26
-
^^^^^^^^^^^^^^^^^^^
27
24
28
-
BigchainDB (server and driver) depends on `cryptoconditions`_,
29
-
which depends on `PyNaCl`_ (`Networking and Cryptography library`_),
30
-
which depends on ``ffi.h``.
31
-
Hence, depending on your setup, you may need to install the
32
-
development files for ``libffi``.
33
-
34
-
On Ubuntu 14.04 and 16.04, this works:
35
-
36
-
.. code-block:: bash
37
-
38
-
$ sudo apt-get update
39
-
40
-
$ sudo apt-get install libffi-dev
41
-
42
-
On Fedora 23 and 24, this works:
43
-
44
-
.. code-block:: bash
45
-
46
-
$ sudo dnf update
47
-
48
-
$ sudo dnf install libffi-devel
49
-
50
-
For other operating systems, just do some web searches for "ffi.h" with the name of your OS.
51
-
52
-
Dependency 2: libssl-dev
53
-
^^^^^^^^^^^^^^^^^^^^^^^^
54
-
BigchainDB (server and driver) also depends on `cryptography`_,
55
-
which in turn depends on `libssl`_ AND `libcrypto`_.
56
-
Hence, depending on your setup you need to install the `libssl-dev`_ (Ubuntu)
57
-
OR `openssl-devel`_ (RHEL) package, which installs the development
58
-
libraries and header files for `libssl`_ and `libcrypto`_.
59
-
60
-
On Ubuntu 14.04 and 16.04:
61
-
62
-
.. code-block:: bash
63
-
64
-
$ sudo apt-get install libssl-dev
65
-
66
-
On Fedora 23 and 24:
67
-
68
-
.. code-block:: bash
69
-
70
-
$ sudo dnf install openssl-devel
71
-
72
-
73
-
Dependency 3: Python 3.5+
25
+
Dependency 1: Python 3.5+
74
26
^^^^^^^^^^^^^^^^^^^^^^^^^
75
27
76
28
The BigchainDB Python Driver uses Python 3.5+. You can check your version of Python using:
@@ -86,7 +38,7 @@ The BigchainDB Python Driver uses Python 3.5+. You can check your version of Pyt
86
38
An easy way to install a specific version of Python, and to switch between versions of Python, is to use `virtualenv <https://virtualenv.pypa.io/en/latest/>`_. Another option is `conda <http://conda.pydata.org/docs/>`_.
87
39
88
40
89
-
Dependency 4: pip
41
+
Dependency 2: pip
90
42
^^^^^^^^^^^^^^^^^
91
43
92
44
You also need to get a recent, Python 3 version of ``pip``, the Python package manager.
@@ -109,7 +61,7 @@ then see `the pip documentation <https://pip.pypa.io/en/stable/installing/>`_
109
61
or our page about that in the `BigchainDB Server docs <https://docs.bigchaindb.com/projects/server/en/latest/appendices/install-latest-pip.html>`_.
110
62
111
63
112
-
Dependency 5: setuptools
64
+
Dependency 3: setuptools
113
65
^^^^^^^^^^^^^^^^^^^^^^^^
114
66
115
67
Once you have a recent Python 3 version of ``pip``, you should be able to upgrade ``setuptools`` using:
@@ -123,6 +75,32 @@ Once you have a recent Python 3 version of ``pip``, you should be able to upgrad
123
75
$ pip3 install --upgrade setuptools
124
76
125
77
78
+
Dependency 4: cryptography and cryptoconditions
79
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
+
81
+
BigchainDB(server and driver) also depends on `cryptography`_ and `cryptoconditions`_.
82
+
83
+
* `cryptography`_ depends on `libssl`_, `libcrypto`_ which also depends on (`Python development library and header files`_).
84
+
* `cryptoconditions`_ depends on `PyNaCl`_ (`Networking and Cryptography library`_) which depends on ``ffi.h``.
0 commit comments