Skip to content

Added hdf5 support as an install extra #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ addons:
packages:
- libhdf5-serial-dev
install:
- pip install .
- pip install coveralls
- pip install numpy
- pip install -e .[hdf5]
- pip install numpy coveralls
script:
nosetests test/unittests --with-coverage --cover-package=nineml
after_success:
Expand Down
18 changes: 8 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ community please consider contributing to the catalog via a pull request.
Installation
------------

HDF5 (dev)
~~~~~~~~~~
The NineML Python Library can be installed using *pip*::

$ pip install nineml

HDF5 Support
~~~~~~~~~~~~

To add support to read or write HDF5_ serialisations you must first install
a HDF5_ dev library (i.e. with the C headers).
Expand All @@ -86,15 +90,9 @@ On Ubuntu/Debian HDF5_ can be installed by one of the following packages:
* libhdf5-openmpi-dev (parallel with Open MPI)
* libhdf5-mpich-dev (parallel with MPICH)

If you don't install HDF5_ the other serialisation formats can still be used
but you will need to install the package manually (i.e. not use *pip*).
Then to install *pype9* with support for HDF5_ select the 'hdf5' extra::

Pip
~~~

The NineML Python Library can be installed using *pip*::

$ pip install nineml
$ pip install nineml[hdf5]

:copyright: Copyright 20011-2017 by the NineML Python Library team, see AUTHORS.
:license: BSD 3, see LICENSE for details.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
'Topic :: Scientific/Engineering'],
install_requires=['lxml>=3.7.3',
'future>=0.16.0',
'h5py>=2.7.0',
'PyYAML>=3.1',
'sympy>=1.1'],
extras_require={
'hdf5': 'h5py>=2.7.0'},
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
tests_require=['nose', 'numpy']
)