Skip to content

Commit

Permalink
Merge pull request #849 from asmorkalov/as/python3_for_build
Browse files Browse the repository at this point in the history
Force python3 in build procedure to generate python typing stubs
  • Loading branch information
asmorkalov committed Jun 1, 2023
2 parents 45e535e + ad3e759 commit 474a1cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def main():
+ [
# skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3
"-DPYTHON3_EXECUTABLE=%s" % sys.executable,
"-DPYTHON_DEFAULT_EXECUTABLE=%s" % sys.executable,
"-DPYTHON3_INCLUDE_DIR=%s" % python_include_dir,
"-DPYTHON3_LIBRARY=%s" % python_lib_path,
"-DBUILD_opencv_python3=ON",
Expand Down

0 comments on commit 474a1cc

Please sign in to comment.