# HG changeset patch # User Matt Mackall # Date 2008-12-31 23:59:58 # Node ID dc211ad8d681555c169e70f4ef9f7cccb32a2d6a # Parent 21233de9c0531281b145595dbddcd73b8d6874ca setup: warn about missing standard Python components diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -9,6 +9,23 @@ import sys if not hasattr(sys, 'version_info') or sys.version_info < (2, 3, 0, 'final'): raise SystemExit("Mercurial requires python 2.3 or later.") +# Solaris Python packaging brain damage +try: + import hashlib + sha = hashlib.sha1() +except: + try: + import sha + except: + raise SystemExit( + "Couldn't import standard hashlib (incomplete Python install).") + +try: + import zlib +except: + raise SystemExit( + "Couldn't import standard zlib (incomplete Python install).") + import os import shutil import tempfile