Skip to content

Commit 474a1cc

Browse files
authored
Merge pull request #849 from asmorkalov/as/python3_for_build
Force python3 in build procedure to generate python typing stubs
2 parents 45e535e + ad3e759 commit 474a1cc

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)