Skip to content

Commit f52c107

Browse files
committed
Force python3 in build procedure to generate python stubs.
1 parent 6b73d90 commit f52c107

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def main():
157157
+ [
158158
# skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3
159159
"-DPYTHON3_EXECUTABLE=%s" % sys.executable,
160+
"-DPYTHON_DEFAULT_EXECUTABLE=%s" % sys.executable,
160161
"-DPYTHON3_INCLUDE_DIR=%s" % python_include_dir,
161162
"-DPYTHON3_LIBRARY=%s" % python_lib_path,
162163
"-DBUILD_opencv_python3=ON",

0 commit comments

Comments
 (0)