Mercurial > hg
comparison setup.py @ 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 | bde1bb250fc2 |
children | 95b7a15b2f05 |
comparison
equal
deleted
inserted
replaced
10760:bdb60057f905 | 10761:16a13fdb4b36 |
---|---|
23 try: | 23 try: |
24 import zlib | 24 import zlib |
25 except: | 25 except: |
26 raise SystemExit( | 26 raise SystemExit( |
27 "Couldn't import standard zlib (incomplete Python install).") | 27 "Couldn't import standard zlib (incomplete Python install).") |
28 | |
29 try: | |
30 import bz2 | |
31 except: | |
32 raise SystemExit( | |
33 "Couldn't import standard bz2 (incomplete Python install).") | |
28 | 34 |
29 import os, subprocess, time | 35 import os, subprocess, time |
30 import shutil | 36 import shutil |
31 import tempfile | 37 import tempfile |
32 from distutils.core import setup, Extension | 38 from distutils.core import setup, Extension |