Fix manpage installation for setup.py install.
Change-Id: If9906cea283ada30d4901969c2b949086a9074b2
This commit is contained in:
parent
0c21fa6cb3
commit
c43cec1857
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
build
|
||||
dist
|
||||
git_review.egg-info
|
||||
MANIFEST
|
||||
|
4
MANIFEST.in
Normal file
4
MANIFEST.in
Normal file
@ -0,0 +1,4 @@
|
||||
include README
|
||||
include LICENSE
|
||||
include AUTHORS
|
||||
graft doc
|
14
setup.py
14
setup.py
@ -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,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user