blob: 55b3ce7b384a7a9ed155ce81cdcf0957588db448 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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 = []
|