import setup from distutils.core if setutools package no installed

This commit is contained in:
zhangshine 2015-06-11 11:26:09 +08:00
parent 8dd09e1e97
commit 93e65b75cc

View file

@ -1,7 +1,10 @@
#!/usr/bin/env python
import os
from setuptools import setup
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
@ -37,4 +40,4 @@ setup(
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)
)