diff --git a/setup.py b/setup.py index ccd1e72..5d907aa 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,11 @@ import sys import os import os.path -from setuptools import setup +# appdirs is a dependency of setuptools, so allow installing without it. +try: + from setuptools import setup +except ImportError: + from distutils.core import setup import appdirs tests_require = []