I managed to get a sphinx build working: http://sparkle.ncnr.nist.gov/pkienzle/sasview First I had to move a setup.py file out of the way, since it broke sphinx autodoc: mv src/sans/simulation/setup.py src/sans/simulation/setup.pynot With some tweaks the setup.py could be moved to the root directory, or maybe removed entirely. We may be able to leave it in place and ignore it with the right sphinx-apidocs invocation. Next I had to prepare the python environment so it contained all the modules in the right place (including periodictable): python setup.py build In ~/src/periodictable/periodictable build/lib.linux-x86_64-2.7 I needed to update conf.py and Makefile to point to the build (see diffs below). This wouldn't be necessary if sasview and periodictable were installed in a virtual environment, but then you would need to trick sphinx into using that environment. Finally, change into the docs/sphinx-docs directory and type: make clean html There are a lot of sphinx markup errors to work through, which I haven't started on. Index: source/conf.py =================================================================== --- source/conf.py (revision 6834) +++ source/conf.py (working copy) @@ -16,7 +16,15 @@ # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -sys.path.insert(0, os.path.abspath('../../src')) +from distutils.util import get_platform +platform = '.%s-%s'%(get_platform(),sys.version[:3]) +build_lib = os.path.abspath('../../../build/lib'+platform) +sys.path.insert(0, build_lib) +print "-- path --" +print "\n".join(sys.path) +import sans.sansview +from sans.sansview import __version__ as sasview_version +print "version:",sasview_version Index: Makefile =================================================================== --- Makefile (revision 6834) +++ Makefile (working copy) @@ -48,10 +50,12 @@ clean: rm -rf $(BUILDDIR)/* + rm -rf source/api + rm *.pyc stubs: rm -rf source/api - sphinx-apidoc -o source/api -d 8 ../../src + sphinx-apidoc -o source/api -d 8 ../../build/lib.linux-x86_64-2.7 html: stubs $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html