ali5h / rules_pip

pip package rules for bazel that are fast (incremental fetch), support different python versions and work with all kinds of packages (i.e. packages with namespaces)
MIT License
60 stars 23 forks source link

Issue installing opencv-python #54

Closed cwaeland closed 3 years ago

cwaeland commented 3 years ago

So one of my coworkers recently started using the opencv dependency. This project has a very large C component but thankfully they provide a number of binary wheels for different platforms.

For local development on macOS pip_install() has been able to install the correct wheel opencv_python-4.5.1.48-cp38-cp38-macosx_10_13_x86_64.whl. However, during our CI process pip_install() is instead downloading the source and compiling which can take over 15 minutes.

If I manually pip install on one of our CI instances (pip3 install opencv-python) it finds and downloads opencv_python-4.5.1.48-cp38-cp38-manylinux2014_x86_64.whl.

Any thoughts as to what might be going on here or how to debug?

cwaeland commented 3 years ago

Actually I was able to resolve by using the most recent commit of rules_pip. I suspect the updated version of pip helped.