From 2f29d18e535eae03639a709cfe2cd5703a3dd803 Mon Sep 17 00:00:00 2001
From: Lance Stout <lancestout@gmail.com>
Date: Tue, 8 Nov 2011 07:01:16 -0800
Subject: [PATCH] Use setuptools if available.

---
 setup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 217c6d23..a49ec9d6 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,10 @@
 # file, which you should have received as part of this distribution.
 
 import sys
-from distutils.core import setup, Command
+try:
+    from setuptools import setup, Command
+except ImportError:
+    from distutils.core import setup, Command
 # from ez_setup import use_setuptools
 
 from testall import TestCommand