From: Alexander Else Date: Mon, 23 Jun 2014 02:48:42 +0000 (+1000) Subject: Python bindings build with Distribute X-Git-Tag: v1.5.0-rc1~74^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F506%2Fhead;p=thirdparty%2Frrdtool-1.x.git Python bindings build with Distribute --- diff --git a/bindings/python/setup.py b/bindings/python/setup.py index e44da314..f663e4e8 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -28,7 +28,12 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -from distutils.core import setup, Extension +try: + # Attempt to build using Distribute, which also supports bdist_wheel + from setuptools import setup + from setuptools.extension import Extension +except ImportError: + from distutils.core import setup, Extension import sys, os TOP_SRCDIR = os.environ.get('ABS_TOP_SRCDIR', '../../src')