diff --git a/aksetup_helper.py b/aksetup_helper.py index 5637d68cd98846a826562cf6ca19f038b1778efb..2e9d7a88c81031a0fbdc8d773fd55d9ac0bc6aea 100644 --- a/aksetup_helper.py +++ b/aksetup_helper.py @@ -2,8 +2,34 @@ import distribute_setup distribute_setup.use_setuptools() +import setuptools from setuptools import Extension +if 'distribute' not in setuptools.__file__: + print "-------------------------------------------------------------------------" + print "Setuptools conflict detected." + print "-------------------------------------------------------------------------" + print "When I imported setuptools, I did not get the distribute version of" + print "setuptools, which is troubling--this package really wants to be used" + print "with distribute rather than the old setuptools package. More than likely," + print "you have both distribute and setuptools installed, which is bad." + print + print "See this page for more information:" + print "http://wiki.tiker.net/DistributeVsSetuptools" + print "-------------------------------------------------------------------------" + print "I will continue after a short while, fingers crossed." + print "-------------------------------------------------------------------------" + + delay = 10 + + from time import sleep + import sys + while delay: + sys.stdout.write("Continuing in %d seconds... \r" % delay) + sys.stdout.flush() + delay -= 1 + sleep(1) + def setup(*args, **kwargs): from setuptools import setup import traceback