changeset 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 7bd457ec4e5e
files setup.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
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',