Xilinx/XRT

pybind11 is not found correctly when using python venv

Opened this issue · 0 comments

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.