Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518738 - dev-python/ipython-2.1.0 USE=doc should depend on dev-python/numpydoc
Summary: dev-python/ipython-2.1.0 USE=doc should depend on dev-python/numpydoc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 12:23 UTC by Jan-Matthias Braun
Modified: 2014-08-07 15:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
include numpydoc as dependency for USE=doc (ipython-2.1.0-use_depend_on_numpydoc.patch,432 bytes, patch)
2014-08-01 12:27 UTC, Jan-Matthias Braun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Matthias Braun 2014-08-01 12:23:31 UTC
ipython's documentation generation uses sphinx with the numpydoc extension.

Reproducible: Always
Comment 1 Jan-Matthias Braun 2014-08-01 12:27:03 UTC
Created attachment 382006 [details, diff]
include numpydoc as dependency for USE=doc
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2014-08-01 13:05:39 UTC
fine, ipython will be up for more changes, this can just wait and join or more complete list of changes
Comment 3 Frank Steinmetzger 2014-08-02 02:17:21 UTC
Found this bug report because I had the same problem. So I installed numpydoc manually. But there are more missing dependencies:

 * python2_7: running distutils-r1_run_phase python_compile_all
make -j2 -C docs html 
make: Entering directory `/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/docs'
python autogen_api.py
313 files written
Build API docs finished.
mkdir -p build/html build/doctrees
sphinx-build -b html -d build/doctrees   source build/html
Running Sphinx v1.1.3

Extension error:
Could not import extension matplotlib.sphinxext.mathmpl (exception: No module named matplotlib.sphinxext.mathmpl)
make: *** [html] Error 1


So I installed matplotlib, and now emerging ipython 2.1 went through.
There were however a few glitches in the output while compiling the actual docs:
---------------------
building [html]: targets for 388 source files that are out of date
updating environment: 388 added, 0 changed, 0 removed
[...]

reading sources... [ 18%] api/generated/IPython.html.fabfile
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/html/fabfile.py", line 3, in <module>
    from fabric.api import local,lcd
ImportError: No module named fabric.api
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/html/fabfile.py", line 3, in <module>
    from fabric.api import local,lcd
ImportError: No module named fabric.api
[...]

reading sources... [ 58%] api/generated/IPython.parallel.controller.mongodb
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/parallel/controller/mongodb.py", line 14, in <module>
    from pymongo import Connection
ImportError: No module named pymongo
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/parallel/controller/mongodb.py", line 14, in <module>
    from pymongo import Connection
ImportError: No module named pymongo
[...]

reading sources... [ 70%] api/generated/IPython.testing.iptest
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/testing/iptest.py", line 39, in <module>
    import nose.plugins.builtin
ImportError: No module named nose.plugins.builtin
[...]

reading sources... [ 82%] config/extensions/cythonmagic
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/extensions/cythonmagic.py", line 73, in <module>
    import Cython
ImportError: No module named Cython
reading sources... [ 83%] config/extensions/index
reading sources... [ 83%] config/extensions/octavemagic
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/extensions/octavemagic.py", line 48, in <module>
    import oct2py
ImportError: No module named oct2py
reading sources... [ 83%] config/extensions/rmagic
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
  File "/var/tmp/portage/dev-python/ipython-2.1.0/work/ipython-2.1.0-python2_7/build/lib/IPython/extensions/rmagic.py", line 56, in <module>
    import rpy2.rinterface as ri
ImportError: No module named rpy2.rinterface
[...]
---------------------
the affected pages seem empty in their respective content areas, for instance /usr/share/doc/python-2.1.0/html/config/extensions/cythonmagic.html
Comment 4 cel.gentoo 2014-08-02 09:32:10 UTC
Building the docs is really messy. I will look into this once the testing is fixed. But don't expect too much. Currently, I'm getting more than 100 warnings which apparently originate from modules that are no longer present.
Comment 5 Ian Delaney (RETIRED) gentoo-dev 2014-08-03 00:06:19 UTC
right.  I actually emerged those deps then missed adding them to the ebuild.  The prior version appears not to have even had a doc build.  The doc build can wait. For now we're working the testsuite. However, so far we have numpydoc, matplotlib,
fabric, nose, pymongo & rpy. Any more?
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2014-08-07 03:35:24 UTC
I have now;
sphinx numpydoc nose cython rpy fabric matplotlib pymongo oct2py.
matplotlib pymongo & oct2py are assured via REQUIRED_USE="doc? ( .... )

Also these deps will require additional keywording which I will add to the list already made for the ipython-2.1.0.  Alternatively I can just delete the doc build, but that imo seems unnecessary. 

Are there any more to add?  Holding off on account of further changes required.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2014-08-07 15:14:16 UTC
fixed in the tree