Fixed pep8 issues in setup.py - thanks redbo.
This commit is contained in:
parent
7c39435df5
commit
49dd0c52c1
13
setup.py
13
setup.py
@ -22,14 +22,15 @@ from setuptools.command.sdist import sdist
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
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
|
||||
log_cmd = subprocess.Popen(["bzr","log","--gnu"],
|
||||
stdout = subprocess.PIPE)
|
||||
log_cmd = subprocess.Popen(["bzr", "log", "--gnu"],
|
||||
stdout=subprocess.PIPE)
|
||||
changelog = log_cmd.communicate()[0]
|
||||
with open("ChangeLog", "w") as changelog_file:
|
||||
changelog_file.write(changelog)
|
||||
@ -41,8 +42,8 @@ setup(name='nova',
|
||||
author='OpenStack',
|
||||
author_email='nova@lists.launchpad.net',
|
||||
url='http://www.openstack.org/',
|
||||
cmdclass = {'sdist': local_sdist},
|
||||
packages = find_packages(exclude=['bin','smoketests']),
|
||||
cmdclass={'sdist': local_sdist},
|
||||
packages=find_packages(exclude=['bin', 'smoketests']),
|
||||
scripts=['bin/nova-api',
|
||||
'bin/nova-compute',
|
||||
'bin/nova-dhcpbridge',
|
||||
@ -52,6 +53,4 @@ setup(name='nova',
|
||||
'bin/nova-network',
|
||||
'bin/nova-objectstore',
|
||||
'bin/nova-rsapi',
|
||||
'bin/nova-volume',
|
||||
]
|
||||
)
|
||||
'bin/nova-volume'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user