{"record":{"id":"1665430e901ea3e4","repo":"deepseek-ai/deepseek-harness","slug":"deepseek-harness-runtime-bin-is-wheel-only-build","errorCode":null,"errorMessage":"deepseek-harness-runtime-bin is wheel-only; build and publish platform wheels only.","messagePattern":"deepseek-harness-runtime-bin is wheel-only; build and publish platform wheels only\\.","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"python/sdk-runtime/hatch_build.py","lineNumber":56,"sourceCode":"def _host_platform_tag() -> str:\n    machine = platform.machine().lower()\n    arch = \"arm64\" if machine in {\"arm64\", \"aarch64\"} else \"x64\" if machine in {\"x86_64\", \"amd64\"} else machine\n    system = platform.system().lower()\n    key = f\"macos-{arch}\" if system == \"darwin\" else f\"linux-{arch}\" if system == \"linux\" else system\n    try:\n        return _PLATFORMS[key][0]\n    except KeyError as exc:\n        raise RuntimeError(f\"unsupported deepseek-harness-runtime-bin build platform: {key}\") from exc\n\n\nclass RuntimeBuildHook(BuildHookInterface):\n    \"\"\"Assign the native wheel tag and reject incomplete or mixed-platform payloads.\"\"\"\n\n    def initialize(self, version: str, build_data: dict[str, object]) -> None:\n        if version == \"editable\":\n            return\n        if self.target_name == \"sdist\":\n            raise RuntimeError(\n                \"deepseek-harness-runtime-bin is wheel-only; build and publish platform wheels only.\"\n            )\n\n        platform_tag = os.environ.get(\"DSH_RUNTIME_PLATFORM_TAG\") or _host_platform_tag()\n        matches = [value for value in _PLATFORMS.values() if value[0] == platform_tag]\n        if len(matches) != 1:\n            supported = \", \".join(value[0] for value in _PLATFORMS.values())\n            raise RuntimeError(\n                f\"unsupported DSH_RUNTIME_PLATFORM_TAG {platform_tag!r}; expected one of {supported}\"\n            )\n        expected_executable = matches[0][1]\n        runtime_dir = Path(self.root) / \"src\" / \"deepseek_harness_runtime\" / \"runtime\"\n        runtime_files = sorted(runtime_dir.glob(\"dsh-jsonrpc-agent-pkg-*\") if runtime_dir.is_dir() else [])\n        expected_files = [expected_executable, f\"{expected_executable}-rg\"]\n        if \"-macos-\" in expected_executable:\n            expected_files.append(f\"{expected_executable}-spawn-helper\")\n        found_files = [path.name for path in runtime_files]\n        if found_files != expected_files:","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/python/sdk-runtime/hatch_build.py#L38-L74","documentation":"Error \"deepseek-harness-runtime-bin is wheel-only; build and publish platform wheels only.\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at python/sdk-runtime/hatch_build.py:56 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Build and publish platform wheels only; do not build an sdist for deepseek-harness-runtime-bin."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}