8000 set python install path to mimic 3.4.4 behaviour · vishwesh5/opencv-python@abcd944 · GitHub
[go: up one dir, main page]

Skip to content

Commit abcd944

Browse files
committed
set python install path to mimic 3.4.4 behaviour
1 parent 6b6b8fe commit abcd944

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ def main():
102102
# skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3
103103
"-DPYTHON%d_EXECUTABLE=%s" % (sys.version_info[0], sys.executable),
104104
"-DBUILD_opencv_python%d=ON" % sys.version_info[0],
105+
"-DOPENCV_SKIP_PYTHON_LOADER=ON",
106+
"-DOPENCV_PYTHON_INSTALL_PATH=python",
105107
# Otherwise, opencv scripts would want to install `.pyd' right into site-packages,
106108
# and skbuild bails out on seeing that
107109
"-DINSTALL_CREATE_DISTRIB=ON",
108-
"-DOPENCV_SKIP_PYTHON_LOADER=ON",
109110
# See opencv/CMakeLists.txt for options and defaults
110111
"-DBUILD_opencv_apps=OFF",
111112
"-DBUILD_SHARED_LIBS=OFF",

0 commit comments

Comments
 (0)
0