Skip to content
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

Fix opencv-python version, with conditional formatting to point python 2.7 to the last supported version #1488

Merged
merged 2 commits into from
Nov 11, 2020

Conversation

bosd
Copy link
Contributor

@bosd bosd commented Nov 11, 2020

Supporting both python 2.7 and version 3 is hard when the opencv module dropped python 2 support.

Commits like:
lgv2018@fef4448 trying to fix #1468
fixed python 2 support, but broke python 3 support as mentioned in #1417 .

Some (LTS) distro's still defaults to python 2. @Harvie wanted to keep support for python 2.

To keep supporting both python versions conditional formatting is needed.
Python 2.7 will be pointed to the last supported openCV version. (4.2.0.32)
Python 3 will be pointed to install the recent opencv version.

Implements some of the code as discussed in pull request #1454
thanks to @GitHubCaps

@Harvie Harvie merged commit e939bd1 into vlachoudis:master Nov 11, 2020
@Harvie
Copy link
Collaborator

Harvie commented Nov 11, 2020

Thanks

rar8000 pushed a commit to rar8000/bCNC that referenced this pull request Jul 21, 2023
Fix opencv-python version, with conditional formatting to point python 2.7 to the last supported version
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

Successfully merging this pull request may close these issues.

pip install fails
2 participants