Skip to content

Commit dbb126d

Browse files
ppwwyyxxfacebook-github-bot
authored andcommitted
use optional dependencies
Summary: shapely seems hard to install on windows, and it's not often required. Therefore make it optional. Reviewed By: takatosp1 Differential Revision: D18058677 fbshipit-source-id: 3dad50fe75f47ec5450a3732197f3c966d458361
1 parent 72915ca commit dbb126d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ line_length=100
33
multi_line_output=4
44
known_standard_library=numpy,setuptools
55
known_myself=detectron2
6-
known_third_party=fvcore,matplotlib,cv2,torch,torchvision,PIL,pycocotools,yacs,termcolor,cityscapesscripts,tabulate,tqdm,scipy,lvis,torchvision,psutil
6+
known_third_party=fvcore,matplotlib,cv2,torch,torchvision,PIL,pycocotools,yacs,termcolor,cityscapesscripts,tabulate,tqdm,scipy,lvis,psutil
77
no_lines_before=STDLIB,THIRDPARTY
88
sections=FUTURE,STDLIB,THIRDPARTY,myself,FIRSTPARTY,LOCALFOLDER
99
default_section=FIRSTPARTY

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def get_extensions():
7878
"cloudpickle",
7979
"matplotlib",
8080
"tqdm>4.29.0",
81-
"shapely",
8281
"tensorboard",
8382
],
83+
extras_require={"all": ["shapely", "psutil"]},
8484
ext_modules=get_extensions(),
8585
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension},
8686
)

0 commit comments

Comments
 (0)