[Checkins] SVN: z3c.checkversions/trunk/ warn buildout users about the extra requirement

Christophe Combelles ccomb at free.fr
Wed Aug 25 13:03:12 EDT 2010


Log message for revision 115945:
  warn buildout users about the extra requirement
  

Changed:
  U   z3c.checkversions/trunk/CHANGELOG.txt
  U   z3c.checkversions/trunk/z3c/checkversions/buildout.py

-=-
Modified: z3c.checkversions/trunk/CHANGELOG.txt
===================================================================
--- z3c.checkversions/trunk/CHANGELOG.txt	2010-08-25 16:45:25 UTC (rev 115944)
+++ z3c.checkversions/trunk/CHANGELOG.txt	2010-08-25 17:03:12 UTC (rev 115945)
@@ -5,6 +5,7 @@
 ------------------
 
 - fixed edge case bug where 1.0 was never updated to 1.0.x
+- warn buildout users about the extra requirement
 
 0.4 (2010-07-26)
 ----------------

Modified: z3c.checkversions/trunk/z3c/checkversions/buildout.py
===================================================================
--- z3c.checkversions/trunk/z3c/checkversions/buildout.py	2010-08-25 16:45:25 UTC (rev 115944)
+++ z3c.checkversions/trunk/z3c/checkversions/buildout.py	2010-08-25 17:03:12 UTC (rev 115945)
@@ -12,7 +12,16 @@
 #
 ##############################################################################
 
-from zc.buildout.buildout import Buildout
+import sys
+
+try:
+    from zc.buildout.buildout import Buildout
+except ImportError:
+    raise ImportError(u"zc.buildout is not installed! \n"
+          "If you're in a buildout environment,\n"
+          "enable the buildout extra requirement like this:\n"
+          "eggs = z3c.checkversions [buildout]")
+
 from z3c.checkversions import base
 
 



More information about the checkins mailing list