From 98074446f4fdc5b31e1ce1ef624ce279123c1659 Mon Sep 17 00:00:00 2001 From: Matthew Einhorn Date: Wed, 8 Apr 2015 20:59:04 -0400 Subject: [PATCH] When importing from setuptools, Extension also need be import from there. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 884f3c1a3..dadd6bd23 100644 --- a/setup.py +++ b/setup.py @@ -10,15 +10,15 @@ from copy import deepcopy import os from os.path import join, dirname, sep, exists, basename, isdir, abspath from os import walk, environ, makedirs, listdir -from distutils.extension import Extension from distutils.version import LooseVersion from collections import OrderedDict from time import sleep if environ.get('KIVY_USE_SETUPTOOLS'): - from setuptools import setup + from setuptools import setup, Extension else: from distutils.core import setup + from distutils.extension import Extension if sys.version > '3':