blob: abb0662cc56f108c7d0e71d0b5997555dce828fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
setup.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 13c9dad..9d68590 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,12 @@
from __future__ import absolute_import, division, print_function
import os
-import setuptools
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
base_dir = os.path.dirname(__file__)
@@ -31,7 +36,7 @@ with open(os.path.join(base_dir, "CHANGELOG.rst")) as f:
long_description = "\n".join([long_description, f.read()])
-setuptools.setup(
+setup(
name=about["__title__"],
version=about["__version__"],
|