Skip to content

Commit

Permalink
ENH: Define extra dependencies for building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jluttine committed Nov 2, 2015
1 parent 0b283f2 commit 7c04504
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ Sphinx is required and a few extensions for it. Those can be installed as:
pip install "sphinx>=1.2.3" sphinxcontrib-tikz sphinxcontrib-bayesnet sphinxcontrib-bibtex "numpydoc>=0.5"
Or you can simply install BayesPy with ``doc`` extra, which will take care of
installing the required dependencies:

.. code-block:: console
pip install bayespy[doc]
In order to visualize graphical models in HTML, you need to have ``ImageMagick``
or ``Netpbm`` installed. The documentation can be compiled to HTML and PDF by
running the following commands in the ``doc`` directory:
Expand Down
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ def read(fname):
'matplotlib>=1.2.0',
'h5py'
],
extras_require = {
'doc': [
'sphinx>=1.2.3',
'sphinxcontrib-tikz',
'sphinxcontrib-bayesnet',
'sphinxcontrib-bibtex',
'numpydoc>=0.5',
],
},
packages = find_packages(),
package_data = {
NAME: ["tests/baseline_images/test_plot/*.png"]
Expand Down

0 comments on commit 7c04504

Please sign in to comment.