@@ -31,11 +31,11 @@ python-isal
3131===========
3232
3333Faster zlib and gzip compatible compression and decompression
34- by providing python bindings for the isa-l library.
34+ by providing Python bindings for the ISA-L library.
3535
36- This package provides Python bindings for the `isa-l
36+ This package provides Python bindings for the `ISA-L
3737<https://github.com/intel/isa-l> `_ library. The Intel Infrastructure Storage
38- Acceleration Library (isa-l ) implements several key algorithms in `assembly
38+ Acceleration Library (ISA-L ) implements several key algorithms in `assembly
3939language <https://en.wikipedia.org/wiki/Assembly_language> `_. This includes
4040a variety of functions to provide zlib/gzip-compatible compression.
4141
@@ -45,28 +45,58 @@ and ``gzip`` modules from the stdlib (with some minor exceptions, see below).
4545
4646Installation
4747------------
48+ Installation with pip
49+ .....................
50+ Python-isal can be installed with::
4851
49- isa-l version 2.26.0 or higher is needed. This includes bindings for the
50- adler32 function.
52+ pip install isal
53+
54+ This will include a staticallly linked version of isa-l. On Linux, wheels
55+ are provided. If a wheel is not provided for your system the installation will
56+ build ISA-L first in a temporary directory. Please check the `ISA-L homepage
57+ <https://github.com/intel/isa-l> `_ for the build requirements.
58+
59+ The latest development version of python-isal can be installed with::
60+
61+ pip install git+https://github.com/rhpvorderman/python-isal.git
62+
63+ If you wish to link
64+ dynamically against a version of libisal installed on your system use::
5165
52- isa-l is available in numerous Linux distro's as well as on conda via the
66+ PYTHON_ISAL_LINK_DYNAMIC=true pip install isal
67+
68+ ISA-L is available in numerous Linux distro's as well as on conda via the
5369conda-forge channel. Checkout the `ports documentation
54- <https://github.com/intel/isa-l/wiki/Ports--Repos> `_ on the isa-l project wiki
55- to find out how to install it.
70+ <https://github.com/intel/isa-l/wiki/Ports--Repos> `_ on the ISA-L project wiki
71+ to find out how to install it. It is important that the development headers
72+ are also installed.
5673
57- python-isal can be installed via pypi with:
74+ On Debian and Ubuntu the ISA-L libraries (including the development headers)
75+ can be installed with:
5876
5977.. code-block ::
6078
61- pip install isal
79+ sudo apt install libisal-dev
6280
63- This requires the isa-l library to be installed on your pc.
81+ Installation via conda
82+ ..................................
83+ Python-isal can be installed via conda, for example using
84+ the `miniconda <https://docs.conda.io/en/latest/miniconda.html >`_ installer
85+ with a properly setup `conda-forge
86+ <https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge> `_
87+ channel. When used with bioinformatics tools setting up `bioconda
88+ <http://bioconda.github.io/user/install.html#install-conda> `_
89+ provides a clear set of installation instructions for conda.
6490
65- The latest development version of python-isal can be installed with
91+ python-isal is available on conda-forge and can be installed with
6692
6793.. code-block ::
6894
69- pip install git+https://github.com/rhpvorderman/python-isal.git
95+ conda install python-isal
96+
97+ This will automatically install the isa-l library dependency as well, since
98+ it is available on conda-forge.
99+
70100
71101Usage
72102-----
@@ -96,7 +126,7 @@ Differences with zlib and gzip modules
96126
97127+ Compression level 0 in ``zlib `` and ``gzip `` means **no compression **, while
98128 in ``isal_zlib `` and ``igzip `` this is the **lowest compression level **.
99- This is a design choice that was inherited from the isa-l library.
129+ This is a design choice that was inherited from the ISA-L library.
100130+ Compression levels range from 0 to 3, not 1 to 9.
101131+ ``isal_zlib.crc32 `` and ``isal_zlib.adler32 `` do not support negative
102132 numbers for the value parameter.
0 commit comments