Skip to content

Commit a0eb9f3

Browse files
committed
Add pybind11/compat/README.txt to wheels.
1 parent 9aabe52 commit a0eb9f3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/extra_python_package/test_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
}
5252

5353
compat_headers = {
54+
"include/pybind11/compat/README.txt",
5455
"include/pybind11/compat/pybind11_conduit_v1.h",
5556
"include/pybind11/compat/pybind11_platform_abi_id.h",
5657
"include/pybind11/compat/wrap_include_python_h.h",

tools/setup_global.py.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class InstallHeadersNested(install_headers):
2626

2727

2828
main_headers = glob.glob("pybind11/include/pybind11/*.h")
29-
compat_headers = glob.glob("pybind11/include/pybind11/compat/*.h")
29+
compat_headers = sum([glob.glob(f"pybind11/include/pybind11/compat/*.{ext}")
30+
for ext in ("h", "txt")], [])
3031
detail_headers = glob.glob("pybind11/include/pybind11/detail/*.h")
3132
eigen_headers = glob.glob("pybind11/include/pybind11/eigen/*.h")
3233
stl_headers = glob.glob("pybind11/include/pybind11/stl/*.h")

tools/setup_main.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ setup(
2424
package_data={
2525
"pybind11": ["py.typed"],
2626
"pybind11.include.pybind11": ["*.h"],
27-
"pybind11.include.pybind11.compat": ["*.h"],
27+
"pybind11.include.pybind11.compat": ["*.h", "*.txt"],
2828
"pybind11.include.pybind11.detail": ["*.h"],
2929
"pybind11.include.pybind11.eigen": ["*.h"],
3030
"pybind11.include.pybind11.stl": ["*.h"],

0 commit comments

Comments
 (0)