Skip to content

avoiding multiple PIP packages installation #677

Open
@apatsekin

Description

@apatsekin

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 have opencv-contrib-python-headless installed in my environment, and then I install pip package that depends on opencv-python-headless. Even though it can perfectly fine work with (and supposed to) opencv-contrib-python-headless, pip still gonna install opencv-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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions