ndi-python
ndi-python copied to clipboard
Pass -DPYTHON_EXECUTABLE to cmake
When building ndi-python with virtualenv without activating it, cmake tries to find system-installed python:
$ # No myenv/bin/activate!
$ myenv/bin/python setup.py build
...
-- Found PythonInterp: <some system-installed python>
-- Found PythonLibs: <some system-installed python>
...
This is not good because the version of found one might be different than virtualenv's one.
Therefore, cmake's PYTHON_EXECUTABLE
variable should be explicitly set by setup.py
.