When importing from setuptools, Extension also need be import from there.

This commit is contained in:
Matthew Einhorn 2015-04-08 20:59:04 -04:00
parent 66d6082825
commit 98074446f4
1 changed files with 2 additions and 2 deletions

View File

@ -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':