mirror of
https://github.com/openai/codex.git
synced 2026-10-24 18:18:41 +00:00
sdk/python: use standalone codex-app-server runtime
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user