Clean up some whitespace, test python version the same (cleaner) way that trunk does

This commit is contained in:
kylev
2010-02-25 21:28:13 +00:00
parent 1a728edd49
commit ab6f294c41
2 changed files with 7 additions and 7 deletions

View File

@ -4,8 +4,8 @@ import os
import sys
from setuptools import setup, Extension
if sys.version_info < (2, 3):
raise Error("Python-2.3 or newer is required")
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000:
raise Error("Python 2.3 or newer is required")
if os.name == "posix":
from setup_posix import get_config