From 376c71d1ea26d661d0d01d42e7465324d4f16035 Mon Sep 17 00:00:00 2001 From: beelit94 Date: Wed, 4 Jan 2017 23:56:22 +0800 Subject: [PATCH] provide compatibility between disutil and setuptools --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 08d40ab..7acc100 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ """ This is a python module provide a wrapper of terraform command line tool """ -from setuptools import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup dependencies = [] module_name = 'python-terraform'