We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17d330f commit e894696Copy full SHA for e894696
setup.py
@@ -7,6 +7,7 @@
7
import subprocess
8
import re
9
import sysconfig
10
+from sysconfig import get_paths as gp
11
12
13
def main():
@@ -103,7 +104,8 @@ def main():
103
104
]) + [
105
# skbuild inserts PYTHON_* vars. That doesn't satisfy opencv build scripts in case of Py3
106
"-DPYTHON_DEFAULT_EXECUTABLE=%s" % sys.executable,
- "-DPYTHON3_EXECUTABLE=%s" % sys.executable,
107
+ "-DPYTHON3_LIBRARY=%s" % os.path.join('/usr/lib/x86_64-linux-gnu/', sysconfig.get_config_var('LDLIBRARY')),
108
+ "-DPYTHON3_INCLUDE_DIR=%s" % gp()['include'],
109
"-DBUILD_opencv_python3=ON",
110
"-DBUILD_opencv_python2=OFF",
111
0 commit comments