Skip to content

Commit

Permalink
Try fix RTD build
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Dybbroe <Adam.Dybbroe@smhi.se>
  • Loading branch information
adybbroe committed Nov 30, 2018
1 parent 39acccf commit 0f5c8f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
sys.path.insert(0, os.path.abspath('../'))
sys.path.insert(0, os.path.abspath('../pyspectral'))

# this is quite dirty approach but we're not working at NASA and nobody can die
# because of that. Am I right?
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
render_examples = False
# hack for lacking git-lfs support on rtd
from git_lfs import fetch
fetch(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))

else:
render_examples = True


class Mock(object):

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
requires = ['docutils>=0.3', 'numpy>=1.5.1', 'scipy>=0.14',
'python-geotiepoints>=1.1.1',
'h5py>=2.5', 'requests', 'six', 'pyyaml',
'appdirs']
'appdirs', 'git-lfs']

dask_extra = ['dask[array]']
test_requires = ['pyyaml', 'dask[array]', 'xlrd'] # , 'matplotlib']
Expand Down

0 comments on commit 0f5c8f6

Please sign in to comment.