Mercurial > hg
changeset 10761:16a13fdb4b36 stable
setup: fail if bz2 is not available
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 23 Mar 2010 20:01:30 +0100 |
parents | bdb60057f905 |
children | 129e96f7a87a |
files | setup.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Mon Mar 22 22:19:40 2010 +0100 +++ b/setup.py Tue Mar 23 20:01:30 2010 +0100 @@ -26,6 +26,12 @@ 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