{
  "id": "python/setup-py-deprecated-invoke-setup",
  "signature": "SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.",
  "signature_zh": "SetuptoolsDeprecationWarning：setup.py install 已弃用。请使用 build 和 pip 及其他基于标准的工具。",
  "regex": "SetuptoolsDeprecationWarning:\\ setup\\.py\\ install\\ is\\ deprecated\\.\\ Use\\ build\\ and\\ pip\\ and\\ other\\ standards\\-based\\ tools\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Running `python setup.py install` (or `python setup.py develop`) invokes a legacy code path that setuptools has deprecated in favor of PEP 517/518 build frontends like pip.",
  "root_cause_type": "generic",
  "root_cause_zh": "运行 `python setup.py install`（或 `python setup.py develop`）会调用 setuptools 已弃用的旧代码路径，官方推荐使用 PEP 517/518 构建前端（如 pip）。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Suppresses the message but leaves the deprecated install path; future setuptools versions will remove it and break the build.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Pinning to an old setuptools breaks compatibility with modern pyproject.toml-based projects and other dependencies.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The --user flag does not change the deprecated code path; the warning persists and the install may still fail on modern Python.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use pip: pip install . (pip invokes the PEP 517 build backend automatically)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.93,
      "how": "Build a wheel first: python -m build && pip install dist/*.whl",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.94,
      "how": "For editable installs: pip install -e .",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}