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.
my 2 ct.: ditch all docker / wheels ideas, until you found out, how to build cv2 from src for arm first.
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.
i have the same question, i can build cv2 from src for arm, but stuck at how to build opencv wheels ...