Stop falling back to distutils in setup.py

distutils has been deprecated for years now and pip is refusing to install
projects using it. As such, *some* users are reporting problems installing
requests. Let's avoid this entirely by not falling back to distutils at all.
This commit is contained in:
Ian Cordasco
2016-01-20 07:51:42 -06:00
parent 6592dbc29b
commit 5f2fef5bb5
+2 -4
View File
@@ -6,10 +6,8 @@ import sys
from codecs import open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')