MCPcopy
hub / github.com/pex-tool/pex / pex3_binary

Function pex3_binary

scripts/gen-scie-platform.py:206–230  ·  view source on GitHub ↗
(platform: PlatformConfig)

Source from the content-addressed store, hash-verified

204
205@contextmanager
206def pex3_binary(platform: PlatformConfig) -> Iterator[str]:
207 with tempfile.TemporaryDirectory() as td:
208 pex3 = os.path.join(td, "pex3")
209 subprocess.run(
210 args=[
211 sys.executable,
212 "-m",
213 "pex",
214 "--pip-version",
215 "latest-compatible",
216 ".",
217 "-c",
218 "pex3",
219 "--scie",
220 "lazy",
221 "--scie-pbs-release",
222 platform.pbs_release,
223 "--scie-python-version",
224 platform.python_version,
225 "-o",
226 pex3,
227 ],
228 check=True,
229 )
230 yield pex3
231
232
233def create_complete_platform(complete_platform_file: Path, platform: PlatformConfig) -> None:

Callers 1

create_complete_platformFunction · 0.85

Calls 2

joinMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected