We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d267c2 + 4fcc31a commit 17808d7Copy full SHA for 17808d7
1 file changed
setup.py
@@ -1,12 +1,18 @@
1
from setuptools import setup, Extension
2
from setuptools.command.build_ext import build_ext
3
-import os, sys
+from pip import locations
4
+import os
5
+import sys
6
+import setuptools
7
8
ext_modules = [
9
Extension(
10
'pbtest',
11
['py/main.cpp'],
- include_dirs=['include'],
12
+ include_dirs=[
13
+ # Path to pybind11 headers
14
+ os.path.dirname(locations.distutils_scheme('pybind11')['headers'])
15
+ ],
16
language='c++',
17
),
18
]
0 commit comments