Should fix the sphinx issue.

This commit is contained in:
Monty Taylor 2011-01-26 16:46:25 +00:00 committed by Tarmac
commit 3202042ecc

View File

@ -19,15 +19,6 @@ import subprocess
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist
from sphinx.setup_command import BuildDoc
class local_BuildDoc(BuildDoc):
def run(self):
for builder in ['html', 'man']:
self.builder = builder
self.finalize_options()
BuildDoc.run(self)
class local_sdist(sdist):
@ -44,12 +35,25 @@ class local_sdist(sdist):
changelog_file.write(changelog)
sdist.run(self)
cmdclass = {'sdist': local_sdist}
try:
from sphinx.setup_command import BuildDoc
class local_BuildDoc(BuildDoc):
def run(self):
for builder in ['html', 'man']:
self.builder = builder
self.finalize_options()
BuildDoc.run(self)
cmdclass['build_sphinx'] = local_BuildDoc
except:
pass
name = 'glance'
version = '0.1.5'
cmdclass = {'sdist': local_sdist,
'build_sphinx': local_BuildDoc}
setup(
name=name,