feat: add entrypoint for cmake modules dir (#4258)

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2022-10-20 10:35:18 -04:00
committed by GitHub
parent c3854682e6
commit 1d4a65e2f1
3 changed files with 7 additions and 0 deletions

View File

@@ -144,6 +144,8 @@ with remove_output("pybind11/include", "pybind11/share"):
stdout=sys.stdout,
stderr=sys.stderr,
)
if not global_sdist:
Path("pybind11/share/cmake/pybind11/__init__.py").touch()
txt = get_and_replace(setup_py, version=version, extra_cmd=extra_cmd)
code = compile(txt, setup_py, "exec")