Only keep the cv2 package assembled by cmake/package, dropping the rest of the OpenCV install. Paths are relative to the install dir (scikit-build 1.0) or to the source dir (older scikit-build).
(cmake_manifest)
| 250 | |
| 251 | |
| 252 | def keep_package_files(cmake_manifest): |
| 253 | """ |
| 254 | Only keep the cv2 package assembled by cmake/package, dropping the |
| 255 | rest of the OpenCV install. Paths are relative to the install dir |
| 256 | (scikit-build 1.0) or to the source dir (older scikit-build). |
| 257 | """ |
| 258 | return [ |
| 259 | p for p in cmake_manifest |
| 260 | if re.match(r"(.*/cmake-install/)?cv2/", p.replace(os.path.sep, "/")) |
| 261 | ] |
| 262 | |
| 263 | |
| 264 | def get_and_set_info(contrib, headless, rolling, ci_build): |
nothing calls this directly
no outgoing calls
no test coverage detected