Add pkgconf-pypi entrypoint (#5552)

- This allows `pkgconf --cflags pybind11` and similar commands to work as expected
  if pkgconf is installed from pypi
This commit is contained in:
Dustin Spicuzza
2025-03-06 14:21:24 -05:00
committed by GitHub
parent 79be5c8316
commit ded70fe605
3 changed files with 11 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ setup(
"pybind11.include.pybind11.detail",
"pybind11.include.pybind11.eigen",
"pybind11.include.pybind11.stl",
"pybind11.share",
"pybind11.share.cmake.pybind11",
"pybind11.share.pkgconfig",
],
@@ -40,7 +41,10 @@ setup(
],
"pipx.run": [
"pybind11 = pybind11.__main__:main",
]
],
"pkg_config": [
"pybind11 = pybind11.share.pkgconfig",
],
},
cmdclass=cmdclass
)