Permalink
Browse files

Actually fork sphinx-build to keep Sphinx from leaking state.

  • Loading branch information...
1 parent b594173 commit e610d7bc74e7100561d648918bb83012d7fcd021 Ramiro Morales committed Jan 1, 2014
Showing with 1 addition and 3 deletions.
  1. +1 −3 docs/management/commands/update_docs.py
View
4 docs/management/commands/update_docs.py
@@ -11,7 +11,6 @@
import shutil
import subprocess
import zipfile
-import sphinx.cmdline
from contextlib import closing
from django.conf import settings
from django.core.management.base import NoArgsCommand
@@ -87,10 +86,9 @@ def handle_noargs(self, **kwargs):
shutil.rmtree(build_dir)
build_dir.mkdir(parents=True)
- # "Shell out" (not exactly, but basically) to sphinx-build.
if verbosity >= 2:
print " building %s (%s -> %s)" % (builder, source_dir, build_dir)
- sphinx.cmdline.main(['sphinx-build',
+ subprocess.call(['sphinx-build',
'-b', builder,
'-D', 'language=%s' % release.lang,
'-q', # Be vewy qwiet

0 comments on commit e610d7b

Please sign in to comment.