From 0dc635b981cf111b41ffd13115b21d8985f867b1 Mon Sep 17 00:00:00 2001 From: Mihai Capotă Date: Wed, 23 Nov 2016 14:23:42 -0800 Subject: Add support for user level pybind11 installations Currently, when pybind11 is installed using the `--user` flag of pip, its headers are not found. --- python/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/setup.py b/python/setup.py index 556b722..f366e88 100644 --- a/python/setup.py +++ b/python/setup.py @@ -42,6 +42,7 @@ class BuildExt(build_ext): for ext in self.extensions: ext.extra_compile_args = opts ext.include_dirs.append(pybind11.get_include()) + ext.include_dirs.append(pybind11.get_include(user=True)) build_ext.build_extensions(self) setup( -- cgit v1.2.3