From 8c13971f57f4266e96fd125bf5fad5f808eb74fd Mon Sep 17 00:00:00 2001 From: Orion Reblitz-Richardson Date: Fri, 24 Aug 2018 10:31:55 -0700 Subject: [PATCH] Remove protobuf require and use requirements.txt (#10771) Summary: In prep for making FULL_CAFFE2 default, users shouldn't be required to have protobuf installed. cc pjh5 Pull Request resolved: https://github.com/pytorch/pytorch/pull/10771 Reviewed By: pjh5 Differential Revision: D9474458 Pulled By: orionr fbshipit-source-id: 3e28f5ce64d125a0a0418ce083f9ec73aec62492 --- requirements.txt | 4 ++++ setup.py | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/requirements.txt b/requirements.txt index 2431282b6d4a..dcfc535dc40b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,6 @@ +future +numpy pyyaml +setuptools +six typing diff --git a/setup.py b/setup.py index cb4b3fc747c5..2d36ecaef2db 100644 --- a/setup.py +++ b/setup.py @@ -1063,15 +1063,6 @@ cmdclass = { } cmdclass.update(build_dep_cmds) -install_requires = [ - 'protobuf', - 'pyyaml', - 'numpy', - 'future', - 'setuptools', - 'six', -] if FULL_CAFFE2 else [] - entry_points = {} if FULL_CAFFE2: entry_points = { @@ -1124,5 +1115,4 @@ if __name__ == '__main__': 'lib/include/torch/torch.h', ] }, - install_requires=install_requires, )