Skip to content

Commit

Permalink
Fixes to resolve tests_packaging failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgk committed Sep 15, 2024
1 parent d26ad7b commit d5e38f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
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 @@ -110,6 +110,7 @@
"pybind11",
"pybind11/include",
"pybind11/include/pybind11",
"pybind11/include/pybind11/compat",
"pybind11/include/pybind11/detail",
"pybind11/include/pybind11/eigen",
"pybind11/include/pybind11/stl",
Expand Down
4 changes: 3 additions & 1 deletion tools/setup_global.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ class InstallHeadersNested(install_headers):


main_headers = glob.glob("pybind11/include/pybind11/*.h")
compat_headers = glob.glob("pybind11/include/pybind11/compat/*.h")
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")
cmake_files = glob.glob("pybind11/share/cmake/pybind11/*.cmake")
pkgconfig_files = glob.glob("pybind11/share/pkgconfig/*.pc")
headers = main_headers + detail_headers + stl_headers + eigen_headers
headers = main_headers + compat_headers + detail_headers + eigen_headers + stl_headers

cmdclass = {"install_headers": InstallHeadersNested}
$extra_cmd
Expand All @@ -55,6 +56,7 @@ setup(
(base + "share/cmake/pybind11", cmake_files),
(base + "share/pkgconfig", pkgconfig_files),
(base + "include/pybind11", main_headers),
(base + "include/pybind11/compat", compat_headers),
(base + "include/pybind11/detail", detail_headers),
(base + "include/pybind11/eigen", eigen_headers),
(base + "include/pybind11/stl", stl_headers),
Expand Down
2 changes: 2 additions & 0 deletions tools/setup_main.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ setup(
packages=[
"pybind11",
"pybind11.include.pybind11",
"pybind11.include.pybind11.compat",
"pybind11.include.pybind11.detail",
"pybind11.include.pybind11.eigen",
"pybind11.include.pybind11.stl",
Expand All @@ -23,6 +24,7 @@ setup(
package_data={
"pybind11": ["py.typed"],
"pybind11.include.pybind11": ["*.h"],
"pybind11.include.pybind11.compat": ["*.h"],
"pybind11.include.pybind11.detail": ["*.h"],
"pybind11.include.pybind11.eigen": ["*.h"],
"pybind11.include.pybind11.stl": ["*.h"],
Expand Down

0 comments on commit d5e38f1

Please sign in to comment.