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

Change version detection mechanism for Python OpenCV #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions soft/lib.python.cv2/.cm/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"win": 5
},
"soft_file_universal": "cv2$#sep#$__init__.py",
"detect_version_externally": "yes",
"version_variable_name": "__version__"
"version_module_name": "version",
"version_variable_name": "opencv_version"
},
"soft_name": "Python OpenCV library",
"tags": [
Expand Down
14 changes: 14 additions & 0 deletions soft/lib.python.cv2/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Supported automatic version detection starts from 4.3.0.38 onwards.


If you need to detect an earlier version, please create a version.py file
in the corresponding cv2/ directory with a single line:
------------->8--cut-here--8<-----------
opencv_version = "x.y.z.p"
------------->8--cut-here--8<-----------
where x.y.z.p is your desired version.


When installing older OpenCV versions please use --force_version:
ck install package --tags=lib,python-package,cv2 --force_version=4.0.0.21
This will skip version detection.