Only use setuptools if env set.

This commit is contained in:
Matthew Einhorn 2015-04-08 20:39:59 -04:00
parent 0af0713f57
commit d58eb1d619
1 changed files with 5 additions and 1 deletions

View File

@ -10,12 +10,16 @@ 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 setuptools import setup
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
else:
from distutils.core import setup
if sys.version > '3':
PY3 = True