How to create wheel package

I have built special versions of opencv for my boards which use aarch64LE code. I managed to create a wheel file that installs on target, but for some reason the Python code, and extension code are not found. It seems that I have missed a step. Registration of the symbols is not happening…

Does anyone have an example setup.py file that could create the wheel after compilation of both the libraries and the python3 bindings is complete?

I looked at the opencv-python library, but it builds everything I need to package the very specific make’s output.