comparison setup.py @ 563:09c016174e33 1.0.1

setup: work around easy_intall overzealously installing mercurial
author Augie Fackler <durin42@gmail.com>
date Mon, 15 Feb 2010 10:53:55 -0600
parents c538229d02ca
children 2c15e4c50a54
comparison
equal deleted inserted replaced
562:c538229d02ca 563:09c016174e33
101 raise Exception('You need to install the SWIG' 101 raise Exception('You need to install the SWIG'
102 ' bindings for Subversion to use this package.') 102 ' bindings for Subversion to use this package.')
103 except AssertionError: 103 except AssertionError:
104 raise Exception('You need at least Subversion 1.5 to use this package.') 104 raise Exception('You need at least Subversion 1.5 to use this package.')
105 105
106 requires = []
107 try:
108 import mercurial
109 except ImportError:
110 requires.append('mercurial')
106 111
107 setup( 112 setup(
108 name = 'hgsubversion', 113 name = 'hgsubversion',
109 version = version, 114 version = version,
110 url = 'http://bitbucket.org/durin42/hgsubversion', 115 url = 'http://bitbucket.org/durin42/hgsubversion',
116 long_description = open(os.path.join(os.path.dirname(__file__), 121 long_description = open(os.path.join(os.path.dirname(__file__),
117 'README')).read(), 122 'README')).read(),
118 keywords = 'mercurial', 123 keywords = 'mercurial',
119 packages = ('hgsubversion', 'hgsubversion.svnwrap'), 124 packages = ('hgsubversion', 'hgsubversion.svnwrap'),
120 platforms = 'any', 125 platforms = 'any',
121 install_requires=['mercurial', ], 126 install_requires=requires,
122 classifiers = [ 127 classifiers = [
123 'License :: OSI Approved :: GNU General Public License (GPL)', 128 'License :: OSI Approved :: GNU General Public License (GPL)',
124 'Intended Audience :: Developers', 129 'Intended Audience :: Developers',
125 'Topic :: Software Development :: Version Control', 130 'Topic :: Software Development :: Version Control',
126 'Development Status :: 4 - Beta', 131 'Development Status :: 4 - Beta',