Removing obsolete bzr-related clauses in setup.py
Change-Id: I31786a20c85ad65f340627320f6f5bf3c4e08d79
This commit is contained in:
parent
13a12f889b
commit
fb7260f92a
27
setup.py
27
setup.py
@ -40,34 +40,9 @@ except ImportError:
|
|||||||
|
|
||||||
gettext.install('nova', unicode=1)
|
gettext.install('nova', unicode=1)
|
||||||
|
|
||||||
from nova.utils import parse_mailmap, str_dict_replace
|
|
||||||
from nova import version
|
from nova import version
|
||||||
|
|
||||||
if os.path.isdir('.bzr'):
|
nova_cmdclass = {}
|
||||||
with open("nova/vcsversion.py", 'w') as version_file:
|
|
||||||
vcs_cmd = subprocess.Popen(["bzr", "version-info", "--python"],
|
|
||||||
stdout=subprocess.PIPE)
|
|
||||||
vcsversion = vcs_cmd.communicate()[0]
|
|
||||||
version_file.write(vcsversion)
|
|
||||||
|
|
||||||
|
|
||||||
class local_sdist(sdist):
|
|
||||||
"""Customized sdist hook - builds the ChangeLog file from VC first"""
|
|
||||||
|
|
||||||
def run(self):
|
|
||||||
if os.path.isdir('.bzr'):
|
|
||||||
# We're in a bzr branch
|
|
||||||
env = os.environ.copy()
|
|
||||||
env['BZR_PLUGIN_PATH'] = os.path.abspath('./bzrplugins')
|
|
||||||
log_cmd = subprocess.Popen(["bzr", "log", "--novalog"],
|
|
||||||
stdout=subprocess.PIPE, env=env)
|
|
||||||
changelog = log_cmd.communicate()[0]
|
|
||||||
mailmap = parse_mailmap()
|
|
||||||
with open("ChangeLog", "w") as changelog_file:
|
|
||||||
changelog_file.write(str_dict_replace(changelog, mailmap))
|
|
||||||
sdist.run(self)
|
|
||||||
nova_cmdclass = {'sdist': local_sdist}
|
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from sphinx.setup_command import BuildDoc
|
from sphinx.setup_command import BuildDoc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user