VACUMM / sphinx-fortran

Fortran domain and autodoc extensions to Sphinx
Other
45 stars 29 forks source link

Mocking numpy out to build the doc on RTD #8

Open ndarmage opened 7 years ago

ndarmage commented 7 years ago

Hi, I need to mock out numpy to prevent compilation of fortran code, when building my doc by sphinx on ReadTheDocs.

I'm afraid this becomes an issue when this sphinx extension is used, because the extension itself calls f2py (part of numpy).

I'd like to have a return from main developers, if possible. Many thanks in advance for the kind support.

ndarmage commented 7 years ago

To whom it may concern,

I could finally build the doc successfully on ReadTheDocs.org by removing the extension modules from ext_modules from setup.py and mocking numpy as indicated on the RTD online doc (see MagicMock).

Remind that a requirements.txt-like file is needed if ext sphinx extensions are used.

Cheers,

stefraynaud commented 6 years ago

Hi @ndarmage

I plan to replace the f2py by fparser (https://github.com/stfc/fparser), which should prevent such problem.