Skip to content

Commit e40692b

Browse files
isurufwjakob
authored andcommitted
Use new get_include
This also removes the pybind11 dependency in install_requires as the headers are needed only at setup time.
1 parent 5343a8d commit e40692b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

setup.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ class get_pybind_include(object):
1313
until it is actually installed, so that the ``get_include()``
1414
method can be invoked. """
1515

16-
def __init__(self, user=False):
17-
self.user = user
18-
1916
def __str__(self):
2017
import pybind11
21-
return pybind11.get_include(self.user)
18+
return pybind11.get_include()
2219

2320

2421
ext_modules = [
@@ -28,7 +25,6 @@ def __str__(self):
2825
include_dirs=[
2926
# Path to pybind11 headers
3027
get_pybind_include(),
31-
get_pybind_include(user=True)
3228
],
3329
language='c++'
3430
),
@@ -106,7 +102,6 @@ def build_extensions(self):
106102
description='A test project using pybind11',
107103
long_description='',
108104
ext_modules=ext_modules,
109-
install_requires=['pybind11>=2.4'],
110105
setup_requires=['pybind11>=2.4'],
111106
cmdclass={'build_ext': BuildExt},
112107
zip_safe=False,

0 commit comments

Comments
 (0)