Skip to content

Commit

Permalink
Force python3 in build procedure to generate python stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
asmorkalov committed May 31, 2023
1 parent ccb99df commit ad3e759
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 ad3e759

Please sign in to comment.