Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pybind11 is not found correctly when using python venv #8484

Open
fifield opened this issue Oct 2, 2024 · 0 comments
Open

pybind11 is not found correctly when using python venv #8484

fifield opened this issue Oct 2, 2024 · 0 comments

Comments

@fifield
Copy link
Collaborator

fifield commented Oct 2, 2024

if (${LINUX_FLAVOR} MATCHES "^(ubuntu|debian)")
SET(PKGDIR "dist-packages")

This code assumes that if building on ubuntu then packages are in the directory dist-packages. This is not true if the user (me) is using venv, which puts things in site-packages instead. This is problematic because use of venv is common and is the standard way to create python environments. My current workaround is to hardcode correct search path in to the find_package line.

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

No branches or pull requests

1 participant