Skip to content

Commit 97b1f68

Browse files
committed
Update OpenCV to current 4.x to get PR #20370
1 parent 3dee384 commit 97b1f68

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

opencv

Submodule opencv updated 688 files

opencv_contrib

Submodule opencv_contrib updated 70 files

opencv_extra

Submodule opencv_extra updated 186 files

setup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ def main():
129129
+
130130
[
131131
r"python/cv2/.*config.*.py"
132-
]
133-
+
134-
[
135-
r"python/cv2/.*\.pyi"
136132
],
137133
"cv2.data": [ # OPENCV_OTHER_INSTALL_PATH
138134
("etc" if os.name == "nt" else "share/opencv4") + r"/haarcascades/.*\.xml"
@@ -415,6 +411,14 @@ def _classify_installed_files_override(
415411
with open(config_py, 'w') as opencv_init_config:
416412
opencv_init_config.write(custom_init_data)
417413

414+
for p in install_relpaths:
415+
if p.endswith(".pyi"):
416+
cls._setuptools_wrap._copy_file(
417+
os.path.join(cmake_install_dir, relpath),
418+
os.path.join(cmake_install_dir, "cv2", "data", relpath),
419+
hide_listing=False,
420+
)
421+
418422
for package_name, relpaths_re in cls.package_paths_re.items():
419423
package_dest_reldir = package_name.replace(".", os.path.sep)
420424
for relpath_re in relpaths_re:

0 commit comments

Comments
 (0)