From 28760bd33be09e29b3b1490409eced74e243d88e Mon Sep 17 00:00:00 2001 From: Joe Heck Date: Fri, 20 Jan 2012 20:51:54 +0000 Subject: removing the sphinx_build from setup.py, adding how to run the docs into the README --- setup.py | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index fa418f31..dcd4f2e0 100755 --- a/setup.py +++ b/setup.py @@ -1,30 +1,5 @@ -import os -import subprocess - from setuptools import setup, find_packages -# If Sphinx is installed on the box running setup.py, -# enable setup.py to build the documentation, otherwise, -# just ignore it -cmdclass = {} -try: - from sphinx.setup_command import BuildDoc - - class local_BuildDoc(BuildDoc): - def run(self): - base_dir = os.path.dirname(os.path.abspath(__file__)) - subprocess.Popen(["python", "generate_autodoc_index.py"], - cwd=os.path.join(base_dir, "docs")).communicate() - for builder in ['html', 'man']: - self.builder = builder - self.finalize_options() - BuildDoc.run(self) - cmdclass['build_sphinx'] = local_BuildDoc -except: - # unable to import sphinx, politely skip past... - pass - - setup(name='keystone', version='2012.1', description="Authentication service for OpenStack", @@ -35,6 +10,5 @@ setup(name='keystone', packages=find_packages(exclude=['test', 'bin']), scripts=['bin/keystone', 'bin/keystone-manage'], zip_safe=False, - cmdclass=cmdclass, install_requires=['setuptools'], ) -- cgit