Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Docs on ReadTheDocs

Norman Fomferra edited this page Jun 15, 2016 · 5 revisions

The default ReadTheDocs (RTD) configuration fails for ect-core because RTD tries to install our dependencies using pip (requirements.txt) but unfortunately the h5py package doesn't compile on their servers.

Therefore I am trying to activate the build using a RTD beta feature that uses a YAML configuration readthedocs.yml instead. See

Using this allows for another RTD beta feature conda. See

Following the docs, I created a new conda environment on Ubuntu (RDT uses 64bit Linux servers), see

then installed all required dependencies, and finally created a conda environment file environment.yml:

$ conda create --name ect
$ conda activate ect
$ conda install pytest pytest-cov
$ conda install xarray h5py numpy scipy matplotlib numpydoc
$ conda install -c IOOS h5netcdf
$ conda env export > environment.yml

In the readthedocs.yml file, I then only have:

python:
    version: 3
    setup_py_install: true
conda:
    file: environment.yml

If I don't remove h5netcdf from environment.yml the build will fail, because the latter can obviously not be told to use a specific channel (TBC!).

Here is the documentation link:

-- Norman