Ask Your Question

Revision history [back]

Building custom wheels

Question

Is there any way I can build custom python wheels for opencv?

What I have

Two docker images for arm architecture that build opencv with python support. First one installs opencv in /usr/local. Second one installs it in custom directory (/opt/opencv).

What I need

I want to create a new docker image (based on one of the previous) that will build python wheel with opencv containing all necessary libraries. Actually I need a way to use bdist_wheel properly.

What I've tried

I have tried to run python setup.py bdist_wheel with various build flags.

Also tried to add this: include_package_data=True, distclass=BinaryDistribution, to setup.py in order to include binaries in a wheel.

Why not opencv-python

Because I need to build it for arm. If there is an easy way to adapt opencv-python for arm architecture it will be fine too.