File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,16 @@ def main():
102
102
# skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3
103
103
"-DPYTHON%d_EXECUTABLE=%s" % (sys .version_info [0 ], sys .executable ),
104
104
"-DBUILD_opencv_python%d=ON" % sys .version_info [0 ],
105
+
106
+ # When off, adds __init__.py and a few more helper .py's. We use our own helper files with a different structure.
105
107
"-DOPENCV_SKIP_PYTHON_LOADER=ON" ,
106
- "-DOPENCV_PYTHON2_INSTALL_PATH=python" ,
107
- "-DOPENCV_PYTHON3_INSTALL_PATH=python" ,
108
+ # Relative dir to install the built module to in the build tree.
109
+ # The default is generated from sysconfig, we'd rather have a constant for simplicity
110
+ "-DOPENCV_PYTHON%d_INSTALL_PATH=python" % sys .version_info [0 ],
108
111
# Otherwise, opencv scripts would want to install `.pyd' right into site-packages,
109
112
# and skbuild bails out on seeing that
110
113
"-DINSTALL_CREATE_DISTRIB=ON" ,
114
+
111
115
# See opencv/CMakeLists.txt for options and defaults
112
116
"-DBUILD_opencv_apps=OFF" ,
113
117
"-DBUILD_SHARED_LIBS=OFF" ,
You can’t perform that action at this time.
0 commit comments