diff options
| author | Joe Heck <heckj@mac.com> | 2012-01-19 01:52:44 +0000 |
|---|---|---|
| committer | Joe Heck <heckj@mac.com> | 2012-01-19 16:47:00 -0800 |
| commit | ffeb0e558ca1108df02c53c9170e73020e57e67c (patch) | |
| tree | 4e36a7360d05b2d61565c038f1a53f524cb5c886 /setup.py | |
| parent | 89c378c2400d697059b3e5d81f65814424604c05 (diff) | |
doctry
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -1,13 +1,40 @@ +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", + license='Apache License (2.0)', author='OpenStack, LLC.', author_email='openstack@lists.launchpad.net', url='http://www.openstack.org', packages=find_packages(exclude=['test', 'bin']), scripts=['bin/keystone', 'bin/keystone-manage'], zip_safe=False, + cmdclass=cmdclass, install_requires=['setuptools'], ) |
