Skip to content

Commit 8c13971

Browse files
orionrfacebook-github-bot
authored andcommitted
Remove protobuf require and use requirements.txt (pytorch#10771)
Summary: In prep for making FULL_CAFFE2 default, users shouldn't be required to have protobuf installed. cc pjh5 Pull Request resolved: pytorch#10771 Reviewed By: pjh5 Differential Revision: D9474458 Pulled By: orionr fbshipit-source-id: 3e28f5ce64d125a0a0418ce083f9ec73aec62492
1 parent 474bd60 commit 8c13971

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
future
2+
numpy
13
pyyaml
4+
setuptools
5+
six
26
typing

setup.py

-10
Original file line numberDiff line numberDiff line change
@@ -1063,15 +1063,6 @@ def make_relative_rpath(path):
10631063
}
10641064
cmdclass.update(build_dep_cmds)
10651065

1066-
install_requires = [
1067-
'protobuf',
1068-
'pyyaml',
1069-
'numpy',
1070-
'future',
1071-
'setuptools',
1072-
'six',
1073-
] if FULL_CAFFE2 else []
1074-
10751066
entry_points = {}
10761067
if FULL_CAFFE2:
10771068
entry_points = {
@@ -1124,5 +1115,4 @@ def make_relative_rpath(path):
11241115
'lib/include/torch/torch.h',
11251116
]
11261117
},
1127-
install_requires=install_requires,
11281118
)

0 commit comments

Comments
 (0)