8000 reset to old behaviour · chenhh0/opencv-python@5111fa4 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 5111fa4

Browse files
committed
reset to old behaviour
1 parent 182ebb5 commit 5111fa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def main():
8383
['python/([^/]+/){1,2}cv2[^/]*%(ext)s' % {'ext': re.escape(sysconfig.get_config_var('SO'))}],
8484

8585
'cv2.data': [ # OPENCV_OTHER_INSTALL_PATH
86-
('etc' if os.name == 'nt' else 'share/opencv4') +
86+
('etc' if os.name == 'nt' else 'share/OpenCV') +
8787
r'/haarcascades/.*\.xml'
8888
]
8989
}
@@ -110,8 +110,7 @@ def main():
110110
"-DBUILD_SHARED_LIBS=OFF",
111111
"-DBUILD_TESTS=OFF",
112112
"-DBUILD_PERF_TESTS=OFF",
113-
"-DBUILD_DOCS=OFF",
114-
"-DOPENCV_SKIP_PYTHON_LOADER=ON"
113+
"-DBUILD_DOCS=OFF"
115114
] + (["-DOPENCV_EXTRA_MODULES_PATH=" + os.path.abspath("opencv_contrib/modules")] if build_contrib else [])
116115

117116
# OS-specific components
@@ -124,6 +123,7 @@ def main():
124123
cmake_args.append("-DWITH_QT=OFF")
125124

126125
if sys.platform.startswith('linux'):
126+
cmake_args.append("-DOPENCV_SKIP_PYTHON_LOADER=ON")
127127
cmake_args.append("-DWITH_V4L=ON")
128128
cmake_args.append("-DENABLE_PRECOMPILED_HEADERS=OFF")
129129

0 commit comments

Comments
 (0)
0