diff options
author | Monty Taylor <mordred@inaugust.com> | 2011-10-05 15:50:36 -0400 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2011-10-05 15:50:36 -0400 |
commit | c43cec18577e44d1f5e95f40376a78cb39746df6 (patch) | |
tree | 56fd592e47391b5691a5ea104bdc52b3eb9446f7 | |
parent | 0c21fa6cb38d2da4ee3e06f37af38d3fcedf68b8 (diff) | |
download | git-review-c43cec18577e44d1f5e95f40376a78cb39746df6.tar.gz |
Fix manpage installation for setup.py install.
Change-Id: If9906cea283ada30d4901969c2b949086a9074b2
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | MANIFEST.in | 4 | ||||
-rw-r--r-- | README (renamed from README.md) | 0 | ||||
-rwxr-xr-x | setup.py | 14 |
4 files changed, 17 insertions, 2 deletions
@@ -1,3 +1,4 @@ build dist git_review.egg-info +MANIFEST diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..8855e05 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +include README +include LICENSE +include AUTHORS +graft doc @@ -14,8 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from distutils.core import setup +from setuptools import setup from distutils.command.build import build +from setuptools.command.bdist_egg import bdist_egg from sphinx.setup_command import BuildDoc import commands @@ -33,12 +34,21 @@ class local_build_sphinx(BuildDoc): BuildDoc.run(self) cmdclass['build_sphinx'] = local_build_sphinx + class local_build(build): def run(self): build.run(self) commands.getoutput("sphinx-build -b man -c doc doc/ build/sphinx/man") cmdclass['build'] = local_build + +class local_bdist_egg(bdist_egg): + def run(self): + commands.getoutput("sphinx-build -b man -c doc doc/ build/sphinx/man") + bdist_egg.run(self) +cmdclass['bdist_egg'] = local_bdist_egg + + setup( name='git-review', version=version, @@ -50,6 +60,6 @@ setup( author_email='openstack@lists.launchpad.net', url='http://www.openstack.org', scripts=['git-review'], - data_files=[('share/man/man1',['build/sphinx/man/git-review.1'])], + data_files=[('share/man/man1', ['build/sphinx/man/git-review.1'])], cmdclass=cmdclass, ) |