forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatches.diff
More file actions
36 lines (33 loc) · 1.48 KB
/
Copy pathpatches.diff
File metadata and controls
36 lines (33 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/setup.py b/setup.py
index 7c47082..bf07f64 100755
--- a/setup.py
+++ b/setup.py
@@ -130,7 +130,9 @@ def main():
r"python/cv2/.*config.*.py"
]
+
- [ r"python/cv2/py.typed" ] if sys.version_info >= (3, 6) else []
+ # https://github.com/opencv/opencv-python/issues/871
+ #[ r"python/cv2/py.typed" ] if sys.version_info >= (3, 6) else []
+ []
,
"cv2.data": [ # OPENCV_OTHER_INSTALL_PATH
("etc" if os.name == "nt" else "share/opencv4") + r"/haarcascades/.*\.xml"
@@ -149,8 +151,9 @@ def main():
],
}
- if sys.version_info >= (3, 6):
- rearrange_cmake_output_data["cv2.typing"] = ["python/cv2" + r"/typing/.*\.py"]
+ # https://github.com/opencv/opencv-python/issues/871
+ #if sys.version_info >= (3, 6):
+ # rearrange_cmake_output_data["cv2.typing"] = ["python/cv2" + r"/typing/.*\.py"]
# Files in sourcetree outside package dir that should be copied to package.
# Raw paths relative to sourcetree root.
@@ -497,7 +500,7 @@ def get_and_set_info(contrib, headless, rolling, ci_build):
# generate a fresh version.py always when Git repository exists
# (in sdists the version.py file already exists)
- if os.path.exists(".git"):
+ if False: #os.path.exists(".git"):
old_args = sys.argv.copy()
sys.argv = ["", str(contrib), str(headless), str(rolling), str(ci_build)]
runpy.run_path("find_version.py", run_name="__main__")