Merge pull request #43 from jakirkham/use_distutils_fallback

Use `distutils` if `setuptools` is missing
diff --git a/setup.py b/setup.py
index 030d2ad..ab6ae0b 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,17 @@
 import os
 import sys
 
-from setuptools import setup
+# While I generally consider it an antipattern to try and support both
+# setuptools and distutils with a single setup.py, in this specific instance
+# where certifi is a dependency of setuptools, it can create a circular
+# dependency when projects attempt to unbundle stuff from setuptools and pip.
+# Though we don't really support that, it makes things easier if we do this and
+# should hopefully cause less issues for end users.
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
+
 
 version_regex = r'__version__ = ["\']([^"\']*)["\']'
 with open('certifi/__init__.py', 'r') as f: