Fix manpage installation for setup.py install.
Change-Id: If9906cea283ada30d4901969c2b949086a9074b2
This commit is contained in:
parent
0c21fa6cb3
commit
c43cec1857
|
@ -1,3 +1,4 @@
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
git_review.egg-info
|
git_review.egg-info
|
||||||
|
MANIFEST
|
||||||
|
|
|
@ -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
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from distutils.core import setup
|
from setuptools import setup
|
||||||
from distutils.command.build import build
|
from distutils.command.build import build
|
||||||
|
from setuptools.command.bdist_egg import bdist_egg
|
||||||
from sphinx.setup_command import BuildDoc
|
from sphinx.setup_command import BuildDoc
|
||||||
import commands
|
import commands
|
||||||
|
|
||||||
|
@ -33,12 +34,21 @@ class local_build_sphinx(BuildDoc):
|
||||||
BuildDoc.run(self)
|
BuildDoc.run(self)
|
||||||
cmdclass['build_sphinx'] = local_build_sphinx
|
cmdclass['build_sphinx'] = local_build_sphinx
|
||||||
|
|
||||||
|
|
||||||
class local_build(build):
|
class local_build(build):
|
||||||
def run(self):
|
def run(self):
|
||||||
build.run(self)
|
build.run(self)
|
||||||
commands.getoutput("sphinx-build -b man -c doc doc/ build/sphinx/man")
|
commands.getoutput("sphinx-build -b man -c doc doc/ build/sphinx/man")
|
||||||
cmdclass['build'] = local_build
|
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(
|
setup(
|
||||||
name='git-review',
|
name='git-review',
|
||||||
version=version,
|
version=version,
|
||||||
|
@ -50,6 +60,6 @@ setup(
|
||||||
author_email='openstack@lists.launchpad.net',
|
author_email='openstack@lists.launchpad.net',
|
||||||
url='http://www.openstack.org',
|
url='http://www.openstack.org',
|
||||||
scripts=['git-review'],
|
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,
|
cmdclass=cmdclass,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue