# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1281549455 -7200 # Node ID 26b85c0cf48a87a5240a9e333e7725f4cf7b178e # Parent 703f33576ad89d023c9252151afb2263b14308e4 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. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -99,9 +99,11 @@ try: except ImportError: requires.append('mercurial') -# Ensure that the Subversion bindings are present -sys.path.insert(0, 'hgsubversion') -import svnwrap +# If the Subversion SWIG bindings aren't present, require Subvertpy +try: + from hgsubversion.svnwrap import svn_swig_wrapper +except ImportError: + requires.append('subvertpy>=0.7.3') setup( name = 'hgsubversion',