sphinx-fortran
sphinx-fortran copied to clipboard
Mocking numpy out to build the doc on RTD
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.
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,
Hi @ndarmage
I plan to replace the f2py by fparser (https://github.com/stfc/fparser), which should prevent such problem.