Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocking numpy out to build the doc on RTD #8

Open
ndarmage opened this issue Jun 2, 2017 · 2 comments
Open

Mocking numpy out to build the doc on RTD #8

ndarmage opened this issue Jun 2, 2017 · 2 comments

Comments

@ndarmage
Copy link

ndarmage commented Jun 2, 2017

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
Copy link
Author

ndarmage commented Jun 8, 2017

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
Copy link
Member

Hi @ndarmage

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants