- Notifications
You must be signed in to change notification settings - Fork902
Description
Hey guys! A bit confused on how to properly set a PIP dependency for my package if it depends on OpenCV. README clearly states:
There are four different packages (see options 1, 2, 3 and 4 below) and you should SELECT ONLY ONE OF THEM.
implying
opencv-python
opencv-contrib-python
opencv-python-headless
opencv-contrib-python-headless
Say I haveopencv-contrib-python-headless
installed in my environment, and then I install pip package that depends onopencv-python-headless
. Even though it can perfectly fine work with (and supposed to)opencv-contrib-python-headless
, pip still gonna installopencv-python-headless
breaking aforementioned rule.
How to handle that? What should that package set as a dependency to install opencv only if neither packages installed