(platform: PlatformConfig)
| 204 | |
| 205 | @contextmanager |
| 206 | def 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 | |
| 233 | def create_complete_platform(complete_platform_file: Path, platform: PlatformConfig) -> None: |
no test coverage detected