From 47b720e7f333a6a440b0c13b1909e66e0a3358a0 Mon Sep 17 00:00:00 2001 From: Daniel Halperin Date: Sat, 20 Dec 2014 08:16:05 -0800 Subject: [PATCH] setup.py: add requests to setup_requires See #16 and http://stackoverflow.com/questions/27497470/setuptools-finds-wrong-package-during-install Multiple hours of 100's of Google searches eventually took me to this numpy thread: https://github.com/numpy/numpy/issues/2434#issuecomment-65252402 for which they had to add numpy to `setup_requires` AND `install_requires` to fix a similar issue. Doing this with requests seems to have worked. However, I am somewhat skeptical as posters on SO indicated they did not see our problem in the first place. I may just be getting lucky. I tried on my Mac as well as on Ubuntu (dbserver02), and am able to install from a clean virtualenv on both systems. Fix #16 for now. --- .gitignore | 1 + setup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index da35f8e..0dcd3d4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ dist/ myria_python.egg-info/ .idea .scripttest*txt +requests-*.egg/ diff --git a/setup.py b/setup.py index 73cf710..ce80784 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,7 @@ url='https://github.com/uwescience/myria', description='Python interface for Myria.', long_description=open('README.md').read(), + setup_requires=["requests"], # see https://stackoverflow.com/questions/18578439 install_requires=["pip >= 1.5.6", "pyOpenSSL >= 0.14", "ndg-httpsclient", "pyasn1", "requests", "requests_toolbelt",