# HG changeset patch # User Augie Fackler # Date 1266252835 21600 # Node ID 09c016174e332eceda015d3f43d96d7e0228acf3 # Parent c538229d02caf5cb567d5f77e4fbb3b2eaf42f89 setup: work around easy_intall overzealously installing mercurial diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -103,6 +103,11 @@ except ImportError: except AssertionError: raise Exception('You need at least Subversion 1.5 to use this package.') +requires = [] +try: + import mercurial +except ImportError: + requires.append('mercurial') setup( name = 'hgsubversion', @@ -118,7 +123,7 @@ setup( keywords = 'mercurial', packages = ('hgsubversion', 'hgsubversion.svnwrap'), platforms = 'any', - install_requires=['mercurial', ], + install_requires=requires, classifiers = [ 'License :: OSI Approved :: GNU General Public License (GPL)', 'Intended Audience :: Developers',