| 1 |
Installation |
| 2 |
============ |
| 3 |
|
| 4 |
Pip |
| 5 |
--- |
| 6 |
|
| 7 |
Basic installation: |
| 8 |
|
| 9 |
.. code-block:: shell |
| 10 |
|
| 11 |
$ python3 -m pip install bpack |
| 12 |
|
| 13 |
Recommended: |
| 14 |
|
| 15 |
.. code-block:: shell |
| 16 |
|
| 17 |
$ python3 -m pip install bpack[bs,np] |
| 18 |
|
| 19 |
to install also dependencies necessary to use the :mod:`bpack.bs` backend |
| 20 |
and (for binary structures defined up to the bit level). |
| 21 |
|
| 22 |
|
| 23 |
Conda |
| 24 |
----- |
| 25 |
|
| 26 |
.. code-block:: shell |
| 27 |
|
| 28 |
$ conda install -c conda-forge -c avalentino bpack |
| 29 |
|
| 30 |
|
| 31 |
Testing |
| 32 |
------- |
| 33 |
|
| 34 |
To run the test suite it is necessary to have pytest_ installed: |
| 35 |
|
| 36 |
.. code-block:: shell |
| 37 |
|
| 38 |
$ python3 -m pytest --pyargs bpack |
| 39 |
|
| 40 |
This only tests codec backends for which the necessary dependencies |
| 41 |
are available. |
| 42 |
To run a complete test please make sure to install all optional dependencies |
| 43 |
and testing libraries: |
| 44 |
|
| 45 |
.. code-block:: shell |
| 46 |
|
| 47 |
$ python3 -m pip install bpack[test] |
| 48 |
|
| 49 |
|
| 50 |
.. _pytest: https://docs.pytest.org |