diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-01-20 07:51:42 -0600 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-01-20 07:51:42 -0600 |
| commit | 5f2fef5bb57c2f2bc627ccb50f472f513e64dbab (patch) | |
| tree | 698ce22c379f33e33494309998e5ab1ed93f45bc /setup.py | |
| parent | 6592dbc29b4e4f76b544f523437cc88ac2943634 (diff) | |
| download | python-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-x | setup.py | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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') |
