Commit 71414f04 authored by Mark Hymers's avatar Mark Hymers

Add readthedocs workaround for mpi4py

Signed-off-by: Mark Hymers's avatarMark Hymers <mark.hymers@ynic.york.ac.uk>
parent 387403d4
#!/usr/bin/python
import sys
import os
from setuptools import setup, find_packages
# Scripts
......@@ -11,6 +12,11 @@ if len(sys.argv) == 2 and sys.argv[1] == '--list-scripts':
print(' '.join(scripts))
sys.exit(0)
# Allow us to build on readthedocs which doesn't have MPI
install_requires = ['h5py', 'sphinx_rtd_theme']
if not 'READTHEDOCS' in os.environ:
install_requires += ['mpi4py']
name = 'anamnesis'
version = '1.0'
release = '1.0.0'
......@@ -61,9 +67,7 @@ setup(
'anamnesis.test.data': ['*.hdf5']
},
install_requires = ['h5py',
'mpi4py',
'sphinx_rtd_theme'],
install_requires = install_requires,
extras_require={
'test': ['coverage'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment