|
5 | 5 |
|
6 | 6 | The full license is in the file LICENSE, distributed with this software. |
7 | 7 |
|
8 | | -.. |libsemigroups-pybind11-version| replace:: 1.0.0 |
9 | | - |
10 | 8 | Installation |
11 | 9 | ============ |
12 | 10 |
|
13 | 11 | Installing with pip |
14 | 12 | ------------------- |
15 | 13 |
|
16 | | -It's possible to install ``libsemigroups_pybind11`` using ``pip`` something |
17 | | -like the following (depending on your system and setup): |
| 14 | +It's possible to install ``libsemigroups_pybind11`` using ``pip`` by doing one |
| 15 | +of the following (depending on your system and setup): |
| 16 | + |
| 17 | +.. highlight:: console |
18 | 18 |
|
19 | 19 | :: |
20 | 20 |
|
21 | | - pip install libsemigroups_pybind11 |
22 | | - pip3 install libsemigroups_pybind11 |
23 | | - python -m pip install libsemigroups_pybind11 |
| 21 | + $ pip install libsemigroups_pybind11 |
| 22 | + |
| 23 | + |
| 24 | +:: |
| 25 | + |
| 26 | + $ pip3 install libsemigroups_pybind11 |
| 27 | + |
| 28 | +:: |
| 29 | + |
| 30 | + $ python -m pip install libsemigroups_pybind11 |
24 | 31 |
|
25 | 32 |
|
26 | 33 | .. Installing with conda |
@@ -56,46 +63,53 @@ like the following (depending on your system and setup): |
56 | 63 | From the sources |
57 | 64 | ---------------- |
58 | 65 |
|
59 | | -Before installing ``libsemigroups_pybind11`` from its sources you should first |
| 66 | +Before installing ``libsemigroups_pybind11`` from its sources, you should first |
60 | 67 | perform a system install of the C++ library ``libsemigroups``. For information |
61 | | -about how to install ``libsemigroups`` see `the installation guide |
| 68 | +about how to do this, see the `libsemigroups installation guide |
62 | 69 | <https://libsemigroups.github.io/libsemigroups/md_install.html>`_. |
63 | 70 |
|
64 | | -Assuming that you have ``libsemigroups`` installed you can install |
| 71 | +Assuming that you have ``libsemigroups`` installed, you can install |
65 | 72 | ``libsemigroups_pybind11`` as follows: |
66 | 73 |
|
67 | 74 | :: |
68 | 75 |
|
69 | | - git clone https://github.com/libsemigroups/libsemigroups_pybind11 |
70 | | - cd libsemigroups_pybind11 |
71 | | - pip install . |
| 76 | + $ git clone https://github.com/libsemigroups/libsemigroups_pybind11 |
| 77 | + $ cd libsemigroups_pybind11 |
| 78 | + $ pip install . |
72 | 79 |
|
73 | 80 | From a release archive |
74 | 81 | ~~~~~~~~~~~~~~~~~~~~~~ |
75 | 82 |
|
76 | 83 | To build ``libsemigroups_pybind11`` from a release archive: |
77 | 84 |
|
| 85 | +.. Unfortunately, text replacement doesn't work inside of code blocks, so it is |
| 86 | + necessary to update the version number below manually. |
| 87 | + |
78 | 88 | :: |
79 | 89 |
|
80 | | - curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-|libsemigroups-pybind11-version|.tar.gz |
81 | | - tar -xf libsemigroups_pybind11-|libsemigroups-pybind11-version|.tar.gz |
82 | | - rm -f libsemigroups_pybind11-|libsemigroups-pybind11-version|.tar.gz |
83 | | - cd libsemigroups_pybind11-|libsemigroups-pybind11-version| |
84 | | - pip install . |
| 90 | + $ curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-1.0.0.tar.gz |
| 91 | + $ tar -xf libsemigroups_pybind11-1.0.0.tar.gz |
| 92 | + $ rm -f libsemigroups_pybind11-1.0.0.tar.gz |
| 93 | + $ cd libsemigroups_pybind11-1.0.0 |
| 94 | + $ pip install . |
85 | 95 |
|
86 | 96 | Building the documentation |
87 | 97 | -------------------------- |
88 | 98 |
|
89 | | -Assuming you already have ``python3`` install, you can build the doc by using: |
| 99 | +Assuming you have ``python3`` and ``make`` installed, you can build the doc by |
| 100 | +using: |
90 | 101 |
|
91 | 102 | :: |
92 | 103 |
|
93 | | - python3 -m pip3 install -r requirements.txt |
94 | | - make doc |
| 104 | + $ python3 -m pip3 install -r requirements.txt |
| 105 | + $ make doc |
| 106 | + |
| 107 | +If you don't have ``make``, you can run the executable ``./etc/make-doc.sh`` |
| 108 | +instead of running ``make doc`` (which is precisely what ``make doc`` does). |
95 | 109 |
|
96 | 110 | Issues |
97 | 111 | ------ |
98 | 112 |
|
99 | 113 | If you find any problems with ``libsemigroups_pybind11``, or have any |
100 | | -suggestions for features that you’d like to see, please use the |
| 114 | +suggestions for features that you'd like to see, please use the |
101 | 115 | `issue tracker`_. |
0 commit comments