ndi-python icon indicating copy to clipboard operation
ndi-python copied to clipboard

Pass -DPYTHON_EXECUTABLE to cmake

Open minoki opened this issue 1 year ago • 0 comments

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.

minoki avatar Mar 02 '23 09:03 minoki