From e40692bfd95a600d3bed9101841fe855af622e34 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 21 Nov 2019 12:10:05 -0600 Subject: [PATCH] Use new get_include This also removes the pybind11 dependency in install_requires as the headers are needed only at setup time. --- setup.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/setup.py b/setup.py index e42810d..89c16f3 100644 --- a/setup.py +++ b/setup.py @@ -13,12 +13,9 @@ class get_pybind_include(object): until it is actually installed, so that the ``get_include()`` method can be invoked. """ - def __init__(self, user=False): - self.user = user - def __str__(self): import pybind11 - return pybind11.get_include(self.user) + return pybind11.get_include() ext_modules = [ @@ -28,7 +25,6 @@ ext_modules = [ include_dirs=[ # Path to pybind11 headers get_pybind_include(), - get_pybind_include(user=True) ], language='c++' ), @@ -106,7 +102,6 @@ setup( description='A test project using pybind11', long_description='', ext_modules=ext_modules, - install_requires=['pybind11>=2.4'], setup_requires=['pybind11>=2.4'], cmdclass={'build_ext': BuildExt}, zip_safe=False,