[build] Remove setup_requires and tests_require from setup.py for FULL_CAFFE2#10530
[build] Remove setup_requires and tests_require from setup.py for FULL_CAFFE2#10530orionr wants to merge 2 commits intopytorch:masterfrom
Conversation
|
This is on a devserver? Usually a hang is because your proxy settings are wrong. (Anyway, I agree: cool build systems don't connect to the network when you run them.) |
|
I think @ezyang is right, it'll try to install these packages before it starts building. But this wasn't buying us much anyways |
|
Which packages is it trying to install? Is it due to the NNPACK dependency? IIRC, nnpack has a few dependency download here: https://github.com/Maratyszcza/NNPACK/tree/master/cmake |
|
Also, I am a bit curious why we need pytest-runner for setup, since we don't run test during setup time I think...? |
|
This (and also test_requires) is for delegating |
|
A few points:
So, I support this patch as written, just not for the reasons originally proffered. |
|
@ezyang |
|
At this point I'm going to remove |
|
I think that install_requires affects wheel installs, causing pip to install the needed dependencies before installing the wheel. It can be moved to requirements.txt as well, though I think requirements.txt is simply convention and not used by pip itself |
facebook-github-bot
left a comment
There was a problem hiding this comment.
orionr is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
In my environment, it looks like setup.py hangs when running
Removing this fixes things, but we might also want to look at
tests_require, which came over fromsetup_caffe2.py.cc @pjh5