From 8184a1806220b305c386e15fae67e6ab2ce3dba3 Mon Sep 17 00:00:00 2001 From: Sebastien Martini Date: Thu, 15 Sep 2011 22:00:17 +0200 Subject: Use setuptools setup method if setuptools package is available (idea contributed by Hunter Blanks hblanks@monetate.com). --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1840ab6..f38f162 100755 --- a/setup.py +++ b/setup.py @@ -8,8 +8,14 @@ compile_ext_mod = False # import statements import os import sys -from distutils.core import setup, Extension +from distutils.core import Extension from distutils.util import get_platform +try: + # First try to load most advanced setuptools setup. + from setuptools import setup +except: + # Fall back if setuptools is not installed. + from distutils.core import setup platform = get_platform() -- cgit v1.2.1