Skip to content

Commit ad3e759

Browse files
committed
Force python3 in build procedure to generate python stubs.
1 parent ccb99df commit ad3e759

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def main():
162162
+ [
163163
# skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3
164164
"-DPYTHON3_EXECUTABLE=%s" % sys.executable,
165+
"-DPYTHON_DEFAULT_EXECUTABLE=%s" % sys.executable,
165166
"-DPYTHON3_INCLUDE_DIR=%s" % python_include_dir,
166167
"-DPYTHON3_LIBRARY=%s" % python_lib_path,
167168
"-DBUILD_opencv_python3=ON",

0 commit comments

Comments
 (0)