diff options
| author | Bob Kukura <rkukura@redhat.com> | 2012-03-13 11:35:01 -0400 |
|---|---|---|
| committer | Bob Kukura <rkukura@redhat.com> | 2012-03-13 11:35:01 -0400 |
| commit | f2d9aed529058a3f71854a8c6af533e45b37a94b (patch) | |
| tree | e94946e5c9bdd75dcebccf03ee1abb2e365da373 /setup.py | |
| parent | f6d50876985ed9a392fa49dda9c0fc4108a2ac8d (diff) | |
| download | python-neutronclient-f2d9aed529058a3f71854a8c6af533e45b37a94b.tar.gz | |
Remove generation of quantum/vcsversion.py.
The quantum/vcsversion.py module is generated by the quantum project's
setup.py, so python-quantumclient's setup.py should not also generate
it. It is not used in python-quantumclient. Fixes bug 944363.
Change-Id: Ib7dd646aaa24aefa7f6f28397232f52550705e31
Signed-off-by: Bob Kukura <rkukura@redhat.com>
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -22,33 +22,8 @@ except ImportError: use_setuptools() from setuptools import setup, find_packages -import os -import subprocess import version - -def run_git_command(cmd): - output = subprocess.Popen(["/bin/sh", "-c", cmd], - stdout=subprocess.PIPE) - return output.communicate()[0].strip() - -if os.path.isdir('.git'): - branch_nick_cmd = 'git branch | grep -Ei "\* (.*)" | cut -f2 -d" "' - branch_nick = run_git_command(branch_nick_cmd) - revid_cmd = "git --no-pager log --max-count=1 | cut -f2 -d' ' | head -1" - revid = run_git_command(revid_cmd) - revno_cmd = "git --no-pager log --oneline | wc -l" - revno = run_git_command(revno_cmd) - with open("quantum/vcsversion.py", 'w') as version_file: - version_file.write(""" -# This file is automatically generated by setup.py, So don't edit it. :) -version_info = { - 'branch_nick': '%s', - 'revision_id': '%s', - 'revno': %s -} -""" % (branch_nick, revid, revno)) - Name = 'python-quantumclient' Url = "https://launchpad.net/quantum" Version = version.canonical_version_string() |
