diff --git a/setup.py b/setup.py index 62970d4d2..a8111299f 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,13 @@ from __future__ import with_statement -from setuptools import setup +# Six is a dependency of setuptools, so using setuptools creates a +# circular dependency when building a Python stack from source. We +# therefore allow falling back to distutils to install six. +try: + from setuptools import setup +except ImportError: + from distutils.core import setup import six