diff options
author | David McMackins II <contact@mcmackins.org> | 2015-08-29 12:03:44 -0500 |
---|---|---|
committer | David McMackins II <contact@mcmackins.org> | 2015-08-29 12:03:44 -0500 |
commit | d7080699d7266b6693f4388b8f1d4444b67120ba (patch) | |
tree | 20f1ec1ff6ab3c024a8d608f462450e144f5059a | |
parent | 5d79204e71acac66644d40e371fda46ace1bb8c8 (diff) |
Fallback to distutils if setuptools is unavailable
-rw-r--r-- | setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |