Force single-version-externally-managed.

This is a hack around a missing feature - but we REALLY don't want eggs for
this.

Change-Id: I0a00128f6dc64f3c684c7a3834bac9ceeba9275b
This commit is contained in:
Monty Taylor 2011-11-11 17:52:39 -05:00 committed by James E. Blair
parent 0fa05e516b
commit 2d75eca2ea
1 changed files with 12 additions and 0 deletions

View File

@ -15,6 +15,8 @@
# limitations under the License.
from setuptools import setup
from distutils.command.install import install as du_install
from setuptools.command.install import install
# version comes from git-review.
savename = __name__
@ -22,9 +24,19 @@ __name__ = "not-main"
exec(open("git-review", "r"))
__name__ = savename
class git_review_install(install):
# Force single-version-externally-managed
# This puts the manpage in the right location (instead of buried
# in an egg)
def run(self):
return du_install.run(self)
git_review_cmdclass = {'install': git_review_install}
setup(
name='git-review',
version=version,
cmdclass=git_review_cmdclass,
description="Tool to submit code to Gerrit",
license='Apache License (2.0)',
classifiers=["Programming Language :: Python"],