MCPcopy Create free account
hub / github.com/pybind/pybind11 / build_global

Function build_global

noxfile.py:132–151  ·  view source on GitHub ↗

Build global SDist and wheel.

(session: nox.Session)

Source from the content-addressed store, hash-verified

130
131@nox.session(reuse_venv=True)
132def build_global(session: nox.Session) -> None:
133 """
134 Build global SDist and wheel.
135 """
136
137 installer = ["--installer=uv"] if session.venv_backend == "uv" else []
138 session.install("build", "tomlkit")
139 session.log("Building pybind11-global files")
140 pyproject = Path("pyproject.toml")
141 with preserve_file(pyproject):
142 newer_txt = session.run("python", "tools/make_global.py", silent=True)
143 assert isinstance(newer_txt, str)
144 pyproject.write_text(newer_txt, encoding="utf-8")
145 session.run(
146 "python",
147 "-m",
148 "build",
149 *installer,
150 *session.posargs,
151 )

Callers

nothing calls this directly

Calls 4

isinstanceFunction · 0.85
installMethod · 0.80
preserve_fileFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected