# HG changeset patch # User Dirkjan Ochtman # Date 2010-03-23 19:01:30 # Node ID 16a13fdb4b36deec482baf796d61f7d67ae7d6f9 # Parent bdb60057f9051ce45c43504dcd06fb29c3222dc6 setup: fail if bz2 is not available diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -26,6 +26,12 @@ except: raise SystemExit( "Couldn't import standard zlib (incomplete Python install).") +try: + import bz2 +except: + raise SystemExit( + "Couldn't import standard bz2 (incomplete Python install).") + import os, subprocess, time import shutil import tempfile