sdk/python: use standalone codex-app-server runtime

This commit is contained in:
Michael Bolin
2026-04-24 16:19:11 -07:00
parent 9b8a1fbefc
commit 6aa4aed202
14 changed files with 521 additions and 206 deletions
+4 -2
View File
@@ -16,12 +16,14 @@ class RuntimeBuildHook(BuildHookInterface):
del version
if self.target_name == "sdist":
raise RuntimeError(
"openai-codex-cli-bin is wheel-only; build and publish platform wheels only."
"openai-codex-app-server-bin is wheel-only; build and publish platform wheels only."
)
platform_tag = self.config.get("platform-tag") or os.environ.get(
"CODEX_CLI_BIN_PLATFORM_TAG"
"CODEX_APP_SERVER_BIN_PLATFORM_TAG"
)
if not isinstance(platform_tag, str) or not platform_tag:
platform_tag = os.environ.get("CODEX_CLI_BIN_PLATFORM_TAG")
if not isinstance(platform_tag, str) or not platform_tag:
platform_tag = _platform_tag()