summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2015-08-29 12:03:44 -0500
committerDavid McMackins II <contact@mcmackins.org>2015-08-29 12:03:44 -0500
commitd7080699d7266b6693f4388b8f1d4444b67120ba (patch)
tree20f1ec1ff6ab3c024a8d608f462450e144f5059a
parent5d79204e71acac66644d40e371fda46ace1bb8c8 (diff)
Fallback to distutils if setuptools is unavailable
-rw-r--r--setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index ba7382d..8f0ee7c 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,10 @@
import re
from os.path import dirname, realpath
-from setuptools import setup
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
version = ''
with open('cfetch/__init__.py', 'r') as f: