- Notifications
You must be signed in to change notification settings - Fork919
Closed
Description
Expected behaviour
I want to build aopencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
but the abi3 part is missing (i.e. I need to built it manually for py37,38,39,310,311,312,313)
It works generally fine, but I just get:
opencv_python-4.10.0.84-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
...
opencv_python-4.10.0.84-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Actual behaviour
It doesn't build the abi3 part - I guess I'm missing a flag etc.?
Steps to reproduce
Be on a ppc64le system to reproduce:
a) Build the build-image
cd /tmpwget https://raw.githubusercontent.com/opencv/opencv-python/4.x/docker/manylinux2014/Dockerfile_aarch64 -O Dockerfile.ppc64lesed -i"s/aarch64/ppc64le/g" Dockerfile.ppc64ledocker build -t quay.io/mgiessing/opencv-build:4x -f Dockerfile.ppc64le.
b) Run the build image and build the ppc64le manylinux2014 wheel
# Build manually using Dockerfile.aarch64 and adopted minimally for ppc64le (based off the official quay.io/pypa/manylinux2014_ppc64le)docker run -ti --rm quay.io/mgiessing/opencv-build:4x# Repo that has manylinux2014 numpy ppc64le wheelsmkdir~/.pipecho"[global]">~/.pip/pip.confecho"extra-index-url = https://repo.fury.io/mgiessing">>~/.pip/pip.confcd$HOMEver=cp37-cp37mexport CMAKE_ARGS="-G Ninja -DPYTHON3_LIMITED_API=ON"git clone -b 84 --recursive https://github.com/opencv/opencv-python.git&&cd opencv-python# Needed as ppc64le has numpy 1.19.5 prebuilt wheelsed -i"s/numpy==1.17.0/numpy==1.19.5/g" pyproject.toml/opt/python/${ver}/bin/pip3 install ninjaexport PATH=$PATH:/home/ci/.local/lib/python3.7/site-packages/ninja/data/bin/opt/python/${ver}/bin/pip3 wheel. --verboseauditwheel repair opencv_python*whl
Issue submission checklist
- This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
- I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
- The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
- [] I'm using the latest version of
opencv-python
==> No, I'm using version84
Metadata
Metadata
Assignees
Labels
No labels