diff options
author | Jeff Rouse <jr@its.to> | 2017-02-23 22:33:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-23 22:33:11 -0800 |
commit | e708311ef952bba6e3830387ef15384222c49d7e (patch) | |
tree | fa28917e250f9b9b15475534b1db509f4968b6e4 /setup.py | |
parent | 0336c77a8d138f864cd307a84a576dfea00319b9 (diff) | |
parent | b68a72e5472ead00a7ff3772dee672e46a70ecdb (diff) | |
download | appdirs-e708311ef952bba6e3830387ef15384222c49d7e.tar.gz |
Merge pull request #84 from jmroot/optional-setuptools
Allow installing without setuptools
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 = [] |