Fixed pep8 issues in setup.py - thanks redbo.

This commit is contained in:
Monty Taylor 2010-07-28 16:05:17 -07:00
parent 7c39435df5
commit 49dd0c52c1

View File

@ -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'])