[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Fail more gracefully on missing zlib



Update of /home/minion/cvsroot/src/minion
In directory moria.seul.org:/tmp/cvs-serv28073

Modified Files:
	setup.py 
Log Message:
Fail more gracefully on missing zlib

Index: setup.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/setup.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- setup.py	25 Aug 2002 03:48:47 -0000	1.7
+++ setup.py	21 Oct 2002 02:53:48 -0000	1.8
@@ -9,6 +9,12 @@
     print "Sorry, but I require Python 2.0 or higher."
     sys.exit(0)
 
+try:
+    import zlib as _
+except ImportError, _:
+    print "Zlib support seems to be missing; install python with zlib support."
+    sys.exit(0)
+
 import os, struct, shutil
 
 VERSION= '0.1'