Skip to content

Conversation

@minoki
Copy link

@minoki minoki commented Mar 2, 2023

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.

This is important when using a virtualenv without activating it.
minamikik added a commit to minamikik/ndi-python that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant