diff 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
line wrap: on
line diff
--- 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',