MCPcopy Create free account
hub / github.com/opencv/opencv-python / keep_package_files

Function keep_package_files

setup.py:252–261  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

250
251
252def 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
264def get_and_set_info(contrib, headless, rolling, ci_build):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected