未验证 提交 474a1cc0 编写于 作者: A Alexander Smorkalov 提交者: GitHub

Merge pull request #849 from asmorkalov/as/python3_for_build

Force python3 in build procedure to generate python typing stubs
...@@ -162,6 +162,7 @@ def main(): ...@@ -162,6 +162,7 @@ def main():
+ [ + [
# skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3 # skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3
"-DPYTHON3_EXECUTABLE=%s" % sys.executable, "-DPYTHON3_EXECUTABLE=%s" % sys.executable,
"-DPYTHON_DEFAULT_EXECUTABLE=%s" % sys.executable,
"-DPYTHON3_INCLUDE_DIR=%s" % python_include_dir, "-DPYTHON3_INCLUDE_DIR=%s" % python_include_dir,
"-DPYTHON3_LIBRARY=%s" % python_lib_path, "-DPYTHON3_LIBRARY=%s" % python_lib_path,
"-DBUILD_opencv_python3=ON", "-DBUILD_opencv_python3=ON",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册