From 44966d33d34e791077a41fca4d8cbcde86fa96a0 Mon Sep 17 00:00:00 2001 From: Allan Haywood Date: Mon, 24 Apr 2017 12:53:34 -0700 Subject: [PATCH] Fixing issue13: setup.py does not fallback to using distutils.core import setup Added falling back to distutils.core Tested install on a machine with and without setuptools --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cbb0f5d..18a1a47 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ #!/usr/bin/env python -from setuptools import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup setup( name='contextlib2',