Add in manpage installation hook. Thanks Soren :)

This commit is contained in:
jaypipes@gmail.com 2011-01-20 18:49:13 -05:00
parent c967f9ace2
commit ea0549f73d
1 changed files with 12 additions and 1 deletions

View File

@ -20,6 +20,14 @@ import os
import subprocess
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):
"""Customized sdist hook - builds the ChangeLog file from VC first"""
@ -38,6 +46,9 @@ class local_sdist(sdist):
name = 'glance'
version = '0.1.3pre'
cmdclass = {'sdist': local_sdist,
'build_sphinx': local_BuildDoc}
setup(
name=name,
version=version,
@ -48,7 +59,7 @@ setup(
url='https://launchpad.net/glance',
packages=find_packages(exclude=['tests', 'bin']),
test_suite='nose.collector',
cmdclass={'sdist': local_sdist},
cmdclass=cmdclass,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',