# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1273861634 -7200 # Node ID 2c15e4c50a540d316a572495780e0875eb01aba8 # Parent b70f7c82b9b81c77921dd783dca92eb4453f5a6d setup: check for Subversion by importing the `svnwrap' module. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -93,22 +93,16 @@ if os.path.exists(verfile): if not version: version = 'unknown' -try: - from svn import core - assert core.SVN_VER_MAJOR == 1 - assert core.SVN_VER_MINOR >= 5 -except ImportError: - raise Exception('You need to install the SWIG' - ' bindings for Subversion to use this package.') -except AssertionError: - raise Exception('You need at least Subversion 1.5 to use this package.') - requires = [] try: import mercurial except ImportError: requires.append('mercurial') +# Ensure that the Subversion bindings are present +sys.path.insert(0, 'hgsubversion') +import svnwrap + setup( name = 'hgsubversion', version = version,