Skip to content

Commit

Permalink
Add pybind11/compat/README.txt to wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgk committed Sep 15, 2024
1 parent 9aabe52 commit a0eb9f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/extra_python_package/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
}

compat_headers = {
"include/pybind11/compat/README.txt",
"include/pybind11/compat/pybind11_conduit_v1.h",
"include/pybind11/compat/pybind11_platform_abi_id.h",
"include/pybind11/compat/wrap_include_python_h.h",
Expand Down
3 changes: 2 additions & 1 deletion tools/setup_global.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class InstallHeadersNested(install_headers):


main_headers = glob.glob("pybind11/include/pybind11/*.h")
compat_headers = glob.glob("pybind11/include/pybind11/compat/*.h")
compat_headers = sum([glob.glob(f"pybind11/include/pybind11/compat/*.{ext}")
for ext in ("h", "txt")], [])
detail_headers = glob.glob("pybind11/include/pybind11/detail/*.h")
eigen_headers = glob.glob("pybind11/include/pybind11/eigen/*.h")
stl_headers = glob.glob("pybind11/include/pybind11/stl/*.h")
Expand Down
2 changes: 1 addition & 1 deletion tools/setup_main.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ setup(
package_data={
"pybind11": ["py.typed"],
"pybind11.include.pybind11": ["*.h"],
"pybind11.include.pybind11.compat": ["*.h"],
"pybind11.include.pybind11.compat": ["*.h", "*.txt"],
"pybind11.include.pybind11.detail": ["*.h"],
"pybind11.include.pybind11.eigen": ["*.h"],
"pybind11.include.pybind11.stl": ["*.h"],
Expand Down

0 comments on commit a0eb9f3

Please sign in to comment.