summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-01-20 07:51:42 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2016-01-20 07:51:42 -0600
commit5f2fef5bb57c2f2bc627ccb50f472f513e64dbab (patch)
tree698ce22c379f33e33494309998e5ab1ed93f45bc /setup.py
parent6592dbc29b4e4f76b544f523437cc88ac2943634 (diff)
downloadpython-requests-5f2fef5bb57c2f2bc627ccb50f472f513e64dbab.tar.gz
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.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index b7ed12ba..d90f4b01 100755
--- a/setup.py
+++ b/setup.py
@@ -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')