From e76bfa67d409366d330f0bc83b04ad53dea66a20 Mon Sep 17 00:00:00 2001 From: John Dickinson Date: Fri, 19 Aug 2011 10:58:18 -0500 Subject: [PATCH] simplified setup.py --- setup.py | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/setup.py b/setup.py index 7dd6a90337..fb4d78196a 100644 --- a/setup.py +++ b/setup.py @@ -15,47 +15,13 @@ # limitations under the License. from setuptools import setup, find_packages -from setuptools.command.sdist import sdist -import os -import subprocess -try: - from babel.messages import frontend -except ImportError: - frontend = None from swift import __canonical_version__ as version -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) - changelog = log_cmd.communicate()[0] - with open("ChangeLog", "w") as changelog_file: - changelog_file.write(changelog) - sdist.run(self) - - name = 'swift' -cmdclass = {'sdist': local_sdist} - - -if frontend: - cmdclass.update({ - 'compile_catalog': frontend.compile_catalog, - 'extract_messages': frontend.extract_messages, - 'init_catalog': frontend.init_catalog, - 'update_catalog': frontend.update_catalog, - }) - - setup( name=name, version=version, @@ -66,7 +32,6 @@ setup( url='https://launchpad.net/swift', packages=find_packages(exclude=['test', 'bin']), test_suite='nose.collector', - cmdclass=cmdclass, classifiers=[ 'Development Status :: 4 - Beta', 'License :: OSI Approved :: Apache Software License',