Mercurial > hgsubversion
comparison setup.py @ 681:26b85c0cf48a
setup: require Subvertpy when the SWIG bindings are unavailable.
This isn't quite good enough if the Subversion installation is
too old, but we'd have to replicate the actual version check to deal with
that.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 11 Aug 2010 19:57:35 +0200 |
parents | 55d6697b975a |
children | 050f03a3bdf5 |
comparison
equal
deleted
inserted
replaced
680:703f33576ad8 | 681:26b85c0cf48a |
---|---|
97 try: | 97 try: |
98 import mercurial | 98 import mercurial |
99 except ImportError: | 99 except ImportError: |
100 requires.append('mercurial') | 100 requires.append('mercurial') |
101 | 101 |
102 # Ensure that the Subversion bindings are present | 102 # If the Subversion SWIG bindings aren't present, require Subvertpy |
103 sys.path.insert(0, 'hgsubversion') | 103 try: |
104 import svnwrap | 104 from hgsubversion.svnwrap import svn_swig_wrapper |
105 except ImportError: | |
106 requires.append('subvertpy>=0.7.3') | |
105 | 107 |
106 setup( | 108 setup( |
107 name = 'hgsubversion', | 109 name = 'hgsubversion', |
108 version = version, | 110 version = version, |
109 url = 'http://bitbucket.org/durin42/hgsubversion', | 111 url = 'http://bitbucket.org/durin42/hgsubversion', |