From 72b9c92cc773765f2a79ab649cf1bb24591e0c47 Mon Sep 17 00:00:00 2001 From: Alexander Else Date: Mon, 23 Jun 2014 12:48:42 +1000 Subject: [PATCH] Python bindings build with Distribute --- bindings/python/setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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') -- 2.47.2