@@ -31,11 +31,11 @@ python-isal
31
31
===========
32
32
33
33
Faster 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.
35
35
36
- This package provides Python bindings for the `isa-l
36
+ This package provides Python bindings for the `ISA-L
37
37
<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
39
39
language <https://en.wikipedia.org/wiki/Assembly_language> `_. This includes
40
40
a variety of functions to provide zlib/gzip-compatible compression.
41
41
@@ -45,54 +45,58 @@ and ``gzip`` modules from the stdlib (with some minor exceptions, see below).
45
45
46
46
Installation
47
47
------------
48
- Recommended installation via conda
49
- ..................................
50
- The recommended installation is an installation via Conda. For example using
51
- the `miniconda <https://docs.conda.io/en/latest/miniconda.html >`_ installer
52
- with a properly setup `conda-forge
53
- <https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge> `_
54
- channel. When used with bioinformatics tools setting up `bioconda
55
- <http://bioconda.github.io/user/install.html#install-conda> `_
56
- provides a clear set of installation instructions for conda.
48
+ Installation with pip
49
+ .....................
50
+ Python-isal can be installed with::
57
51
58
- python-isal is available on conda-forge and can be installed with
52
+ pip install isal
59
53
60
- .. code-block ::
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.
61
58
62
- conda install python-isal
59
+ The latest development version of python-isal can be installed with::
63
60
64
- This will automatically install the isa-l library dependency as well, since
65
- it is available on conda-forge.
61
+ pip install git+https://github.com/rhpvorderman/python-isal.git
66
62
67
- Installation with pip
68
- .....................
69
- isa-l version 2.26.0 or higher is needed on your system. This includes bindings
70
- for the adler32 function.
63
+ If you wish to link
64
+ dynamically against a version of libisal installed on your system use::
71
65
72
- 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
73
69
conda-forge channel. Checkout the `ports documentation
74
- <https://github.com/intel/isa-l/wiki/Ports--Repos> `_ on the isa-l project wiki
75
- to find out how to install it. It is important that the development headers
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
76
72
are also installed.
77
73
78
- On debian and ubuntu the isa-l libraries (including the development headers)
79
- can be installed with:
74
+ On Debian and Ubuntu the ISA-L libraries (including the development headers)
75
+ can be installed with:
80
76
81
77
.. code-block ::
82
78
83
79
sudo apt install libisal-dev
84
80
85
- python-isal can be installed via pypi with:
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.
86
90
87
- .. code-block ::
91
+ python-isal is available on conda-forge and can be installed with
88
92
89
- pip install isal
93
+ .. code-block ::
90
94
91
- The latest development version of python-isal can be installed with
95
+ conda install python-isal
92
96
93
- .. code-block ::
97
+ This will automatically install the isa-l library dependency as well, since
98
+ it is available on conda-forge.
94
99
95
- pip install git+https://github.com/rhpvorderman/python-isal.git
96
100
97
101
Usage
98
102
-----
@@ -122,7 +126,7 @@ Differences with zlib and gzip modules
122
126
123
127
+ Compression level 0 in ``zlib `` and ``gzip `` means **no compression **, while
124
128
in ``isal_zlib `` and ``igzip `` this is the **lowest compression level **.
125
- 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.
126
130
+ Compression levels range from 0 to 3, not 1 to 9.
127
131
+ ``isal_zlib.crc32 `` and ``isal_zlib.adler32 `` do not support negative
128
132
numbers for the value parameter.
0 commit comments