Skip to content

Commit ccd694c

Browse files
committed
Start on documentation with installation instruction
1 parent 2a60a08 commit ccd694c

File tree

7 files changed

+68
-61
lines changed

7 files changed

+68
-61
lines changed

README.rst

Lines changed: 5 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -72,57 +72,12 @@ application (just like ``python -m gzip``).
7272

7373
Installation
7474
------------
75-
Installation with pip
76-
.....................
75+
- with pip: ``pip install isal``
76+
- with conda: ``conda install python-isal``
7777

78-
::
79-
80-
pip install isal
81-
82-
Installation is supported on Linux, MacOS and Windows. On x86-64 (amd64)
83-
platforms wheels are provided, so installation should be almost instantaneous.
84-
The installation will include a staticallly linked version of ISA-L.
85-
If a wheel is not provided for your system the
86-
installation will build ISA-L first in a temporary directory. Please check the
87-
`ISA-L homepage <https://github.com/intel/isa-l>`_ for the build requirements.
88-
89-
The latest development version of python-isal can be installed with::
90-
91-
pip install git+https://github.com/rhpvorderman/python-isal.git
92-
93-
This requires having the build requirements installed.
94-
If you wish to link
95-
dynamically against a version of libisal installed on your system use::
96-
97-
PYTHON_ISAL_LINK_DYNAMIC=true pip install isal --no-binary isal
98-
99-
ISA-L is available in numerous Linux distro's as well as on conda via the
100-
conda-forge channel. Checkout the `ports documentation
101-
<https://github.com/intel/isa-l/wiki/Ports--Repos>`_ on the ISA-L project wiki
102-
to find out how to install it. It is important that the development headers
103-
are also installed.
104-
105-
On Debian and Ubuntu the ISA-L libraries (including the development headers)
106-
can be installed with::
107-
108-
sudo apt install libisal-dev
109-
110-
Installation via conda
111-
..................................
112-
Python-isal can be installed via conda, for example using
113-
the `miniconda <https://docs.conda.io/en/latest/miniconda.html>`_ installer
114-
with a properly setup `conda-forge
115-
<https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge>`_
116-
channel. When used with bioinformatics tools setting up `bioconda
117-
<http://bioconda.github.io/user/install.html#install-conda>`_
118-
provides a clear set of installation instructions for conda.
119-
120-
python-isal is available on conda-forge and can be installed with::
121-
122-
conda install python-isal
123-
124-
This will automatically install the ISA-L library dependency as well, since
125-
it is available on conda-forge.
78+
Installation is supported on Linux, Windows and MacOS. For more advanced
79+
installation options check the `documentation
80+
<https://python-isal.readthedocs.io>`_.
12681

12782
Differences with zlib and gzip modules
12883
--------------------------------------

docs/conf.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,19 @@
4040
# List of patterns, relative to source directory, that match files and
4141
# directories to ignore when looking for source files.
4242
# This pattern also affects html_static_path and html_extra_path.
43-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
43+
# includes/* prevents double indexing
44+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'includes/*']
4445

4546

4647
# -- Options for HTML output -------------------------------------------------
4748

4849
# The theme to use for HTML and HTML Help pages. See the documentation for
4950
# a list of builtin themes.
5051
#
51-
html_theme = 'alabaster'
52+
html_theme = 'sphinx_rtd_theme'
53+
html_theme_options = dict(
54+
display_version=True,
55+
)
5256

5357
# Add any paths that contain custom static files (such as style sheets) here,
5458
# relative to this directory. They are copied after the builtin static files,

docs/includes/Installation.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Installation
2+
------------
3+
Installation with pip
4+
.....................
5+
6+
::
7+
8+
pip install isal
9+
10+
Installation is supported on Linux, MacOS and Windows. On most platforms
11+
wheels are provided.
12+
The installation will include a staticallly linked version of ISA-L.
13+
If a wheel is not provided for your system the
14+
installation will build ISA-L first in a temporary directory. Please check the
15+
`ISA-L homepage <https://github.com/intel/isa-l>`_ for the build requirements.
16+
17+
The latest development version of python-isal can be installed with::
18+
19+
pip install git+https://github.com/rhpvorderman/python-isal.git
20+
21+
This requires having the build requirements installed.
22+
If you wish to link
23+
dynamically against a version of libisal installed on your system use::
24+
25+
PYTHON_ISAL_LINK_DYNAMIC=true pip install isal --no-binary isal
26+
27+
ISA-L is available in numerous Linux distro's as well as on conda via the
28+
conda-forge channel. Checkout the `ports documentation
29+
<https://github.com/intel/isa-l/wiki/Ports--Repos>`_ on the ISA-L project wiki
30+
to find out how to install it. It is important that the development headers
31+
are also installed.
32+
33+
On Debian and Ubuntu the ISA-L libraries (including the development headers)
34+
can be installed with::
35+
36+
sudo apt install libisal-dev
37+
38+
Installation via conda
39+
..................................
40+
Python-isal can be installed via conda, for example using
41+
the `miniconda <https://docs.conda.io/en/latest/miniconda.html>`_ installer
42+
with a properly setup `conda-forge
43+
<https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge>`_
44+
channel. When used with bioinformatics tools setting up `bioconda
45+
<http://bioconda.github.io/user/install.html#install-conda>`_
46+
provides a clear set of installation instructions for conda.
47+
48+
python-isal is available on conda-forge and can be installed with::
49+
50+
conda install python-isal
51+
52+
This will automatically install the ISA-L library dependency as well, since
53+
it is available on conda-forge.
File renamed without changes.
File renamed without changes.

docs/index.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ Welcome to python-isal's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
isal_zlib
14-
igzip
13+
.. include:: includes/Installation.rst
1514

15+
.. include:: includes/isal_zlib.rst
1616

17-
18-
Indices and tables
19-
==================
20-
21-
* :ref:`genindex`
22-
* :ref:`modindex`
23-
* :ref:`search`
17+
.. include:: includes/igzip.rst

requirements-docs.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
sphinx
22
setuptools
3+
sphinx-rtd-theme

0 commit comments

Comments
 (0)