Skip to content

pip wheel . --verbose didn't build a wheel for opencv, just opencv_contrib and numpy #876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks
johncblacker opened this issue Jul 21, 2023 · 3 comments

Comments

@johncblacker
Copy link

Expected behaviour

Build a .whl file for opencv as well as one for opencv_contrib

Actual behaviour

.whl for opencv_contrib was built but .whl file for opencv was not built

Steps to reproduce

export ENABLE_CONTRIB=1

ubuntu 22.04 on WSL2

x86-64

  • opencv-python version
    did git checkout tag/4.5.5 in the opencv_contrib subdirectory
    did git checkout tag/4.5.5 in the opencv subdirectory
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
@johncblacker
Copy link
Author

I'm really confused now. I did the git checkout tags/4.5.5 in the opencv subdir and the opencv_contrib subdir; however, when the build was complete I got a opencv_contrib_python-4.8 wheel file! After I did the checkouts I did a git status and each of them were pointing to the 4.5.5 version yet the build ended up for 4.8; also after the build was complete I went into each of the subdir's and they were back to "origin/4.x" so I'm not understanding how/why that happened. I'm trying to build version 4.5.5 but am unable to do so...perhaps I'm doing something wrong? Need some help please.

@asmorkalov
Copy link
Collaborator

setup.py updates submodules to be sure that opencv-python and submodules are consistent in

if os.path.exists(".git"):
. It's debatable solution and may lead to confusion. Will check if it could be dropped.

@johncblacker
Copy link
Author

johncblacker commented Aug 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants