allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [3/4] git commit: [#5973] simple pysvn import check
Date Wed, 03 Apr 2013 14:01:20 GMT
[#5973] simple pysvn import check


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/3a3e769b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/3a3e769b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/3a3e769b

Branch: refs/heads/master
Commit: 3a3e769b2fc82ac9950ac8cced1239b976d6a4d5
Parents: 2400a31
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Wed Apr 3 09:55:33 2013 -0400
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Apr 3 09:55:33 2013 -0400

----------------------------------------------------------------------
 ForgeSVN/setup.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/3a3e769b/ForgeSVN/setup.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/setup.py b/ForgeSVN/setup.py
index fba4631..cb36ced 100644
--- a/ForgeSVN/setup.py
+++ b/ForgeSVN/setup.py
@@ -3,6 +3,15 @@ import sys, os
 
 from forgesvn.version import __version__
 
+# "install_requires" can't be safely used with pysvn since pysvn is packaged
+# strangely and is not always known to packaging tools (setup.py, pip) even
+# when it is installed and can be imported and used
+try:
+    import pysvn
+except ImportError:
+    print '\npysvn must be installed for ForgeSVN to work\n'
+    raise
+
 setup(name='ForgeSVN',
       version=__version__,
       description="",


Mime
View raw message