We would like to use Sphinx :automodule: in our sage external package that depends on sage library (from sage.all import *) Because of this dependency, my local sphinx-build tries to "import sage.all" and this error occurs:
/home/jpedro/all/meg/meg-0.2/doc/source/meg/ur.rst:6: (WARNING/2) autodoc can't import/find module 'meg.ur', it reported error: "No module named sage.all", please check your spelling and sys.path I've added all paths I know to Sphinx conf.py: sys.path.append('/home/jpedro/sage/devel/sage/') os.environ['SAGE_ROOT'] = '/home/jpedro/sage/devel/sage/' os.environ['LD_LIBRARY_PATH'] = '/home/jpedro/sage/devel/sage/local/lib' but it will always produces a different error. For Sage modules there are instructions here: http://www.sagemath.org/doc/developer/sage_manuals.html#building-the-manuals Is there a way to use Sage own sphinx-build to avoid all those "path" problems ? Pedro -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org