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:
committed by
James E. Blair
parent
0fa05e516b
commit
2d75eca2ea
12
setup.py
12
setup.py
@@ -15,6 +15,8 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
from distutils.command.install import install as du_install
|
||||||
|
from setuptools.command.install import install
|
||||||
|
|
||||||
# version comes from git-review.
|
# version comes from git-review.
|
||||||
savename = __name__
|
savename = __name__
|
||||||
@@ -22,9 +24,19 @@ __name__ = "not-main"
|
|||||||
exec(open("git-review", "r"))
|
exec(open("git-review", "r"))
|
||||||
__name__ = savename
|
__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(
|
setup(
|
||||||
name='git-review',
|
name='git-review',
|
||||||
version=version,
|
version=version,
|
||||||
|
cmdclass=git_review_cmdclass,
|
||||||
description="Tool to submit code to Gerrit",
|
description="Tool to submit code to Gerrit",
|
||||||
license='Apache License (2.0)',
|
license='Apache License (2.0)',
|
||||||
classifiers=["Programming Language :: Python"],
|
classifiers=["Programming Language :: Python"],
|
||||||
|
|||||||
Reference in New Issue
Block a user