Building custom wheels

asked 2019-02-27 11:34:58 -0500

Regzon gravatar image

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.

edit retag flag offensive close merge delete

Comments

my 2 ct.: ditch all docker / wheels ideas, until you found out, how to build cv2 from src for arm first.

berak gravatar imageberak ( 2019-02-28 01:50:56 -0500 )edit

As I said I already have docker that buillds opencv for arm, but now I want to understand how to build opencv wheels based on opencv I have.

Regzon gravatar imageRegzon ( 2019-02-28 07:29:20 -0500 )edit