]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Python bindings build with Distribute 506/head
authorAlexander Else <alexander.else@team.telstra.com>
Mon, 23 Jun 2014 02:48:42 +0000 (12:48 +1000)
committerAlexander Else <alexander.else@team.telstra.com>
Mon, 23 Jun 2014 02:48:42 +0000 (12:48 +1000)
bindings/python/setup.py

index e44da31456ed92ea8f5eede8ea794ad9d9bbe5e8..f663e4e849affd9bed1e68757a7caafdac43b05d 100644 (file)
 #  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')