|
7 | 7 | from pybind11 import __version__
|
8 | 8 | import os
|
9 | 9 |
|
| 10 | +package_data = [ |
| 11 | + 'include/pybind11/detail/class.h', |
| 12 | + 'include/pybind11/detail/common.h', |
| 13 | + 'include/pybind11/detail/descr.h', |
| 14 | + 'include/pybind11/detail/init.h', |
| 15 | + 'include/pybind11/detail/internals.h', |
| 16 | + 'include/pybind11/detail/typeid.h', |
| 17 | + 'include/pybind11/attr.h', |
| 18 | + 'include/pybind11/buffer_info.h', |
| 19 | + 'include/pybind11/cast.h', |
| 20 | + 'include/pybind11/chrono.h', |
| 21 | + 'include/pybind11/common.h', |
| 22 | + 'include/pybind11/complex.h', |
| 23 | + 'include/pybind11/eigen.h', |
| 24 | + 'include/pybind11/embed.h', |
| 25 | + 'include/pybind11/eval.h', |
| 26 | + 'include/pybind11/functional.h', |
| 27 | + 'include/pybind11/iostream.h', |
| 28 | + 'include/pybind11/numpy.h', |
| 29 | + 'include/pybind11/operators.h', |
| 30 | + 'include/pybind11/options.h', |
| 31 | + 'include/pybind11/pybind11.h', |
| 32 | + 'include/pybind11/pytypes.h', |
| 33 | + 'include/pybind11/stl.h', |
| 34 | + 'include/pybind11/stl_bind.h', |
| 35 | +] |
| 36 | + |
10 | 37 | # Prevent installation of pybind11 headers by setting
|
11 | 38 | # PYBIND11_USE_CMAKE.
|
12 | 39 | if os.environ.get('PYBIND11_USE_CMAKE'):
|
13 | 40 | headers = []
|
14 | 41 | else:
|
15 |
| - headers = [ |
16 |
| - 'include/pybind11/detail/class.h', |
17 |
| - 'include/pybind11/detail/common.h', |
18 |
| - 'include/pybind11/detail/descr.h', |
19 |
| - 'include/pybind11/detail/init.h', |
20 |
| - 'include/pybind11/detail/internals.h', |
21 |
| - 'include/pybind11/detail/typeid.h', |
22 |
| - 'include/pybind11/attr.h', |
23 |
| - 'include/pybind11/buffer_info.h', |
24 |
| - 'include/pybind11/cast.h', |
25 |
| - 'include/pybind11/chrono.h', |
26 |
| - 'include/pybind11/common.h', |
27 |
| - 'include/pybind11/complex.h', |
28 |
| - 'include/pybind11/eigen.h', |
29 |
| - 'include/pybind11/embed.h', |
30 |
| - 'include/pybind11/eval.h', |
31 |
| - 'include/pybind11/functional.h', |
32 |
| - 'include/pybind11/iostream.h', |
33 |
| - 'include/pybind11/numpy.h', |
34 |
| - 'include/pybind11/operators.h', |
35 |
| - 'include/pybind11/options.h', |
36 |
| - 'include/pybind11/pybind11.h', |
37 |
| - 'include/pybind11/pytypes.h', |
38 |
| - 'include/pybind11/stl.h', |
39 |
| - 'include/pybind11/stl_bind.h', |
40 |
| - ] |
| 42 | + headers = package_data |
41 | 43 |
|
42 | 44 |
|
43 | 45 | class InstallHeaders(install_headers):
|
@@ -66,6 +68,7 @@ def run(self):
|
66 | 68 | packages=['pybind11'],
|
67 | 69 | license='BSD',
|
68 | 70 | headers=headers,
|
| 71 | + package_data={'pybind11': package_data}, |
69 | 72 | cmdclass=dict(install_headers=InstallHeaders),
|
70 | 73 | classifiers=[
|
71 | 74 | 'Development Status :: 5 - Production/Stable',
|
|
0 commit comments