python setup.py build
import sphinx
# run quickstart method to make auto doc project directory structure, # same as sphinx-quickstart shell command in that current working directory from sphinx import quickstart quickstart.main() # then shows: Welcome to the Sphinx 1.2.2 quickstart utility. ... and questions
python /path_to_Sphinx/sphinx-build.py -b html . ./_build
# since the sys.argv is ['/path_to_Sphinx/sphinx-build.py', '-b', 'html', '.', './_build'] import sphinx sphinx.main(['','-b','html','.','./_build']) # 1st arg is empty # you get same: Running Sphinx v1.2.2 .... and docs in _build folder