sphinx-fortran icon indicating copy to clipboard operation
sphinx-fortran copied to clipboard

Mocking numpy out to build the doc on RTD

Open ndarmage opened this issue 7 years ago • 2 comments

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 avatar Jun 02 '17 22:06 ndarmage

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,

ndarmage avatar Jun 08 '17 09:06 ndarmage

Hi @ndarmage

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

stefraynaud avatar Jun 15 '18 07:06 stefraynaud