From d58eb1d619159574131d580481e71ed600a443b4 Mon Sep 17 00:00:00 2001 From: Matthew Einhorn Date: Wed, 8 Apr 2015 20:39:59 -0400 Subject: [PATCH] Only use setuptools if env set. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7509ac548..884f3c1a3 100644 --- a/setup.py +++ b/setup.py @@ -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