{
  "id": "python/pip-legacy-setup-py-develop-install",
  "signature": "DEPRECATION: Legacy editable install of mypkg==0.1 from file:///path (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517",
  "signature_zh": "DEPRECATION：来自 file:///path 的 mypkg==0.1 的传统可编辑安装（setup.py develop）已被弃用。pip 25.0 将强制执行此行为更改。可能的替代方案是添加 pyproject.toml 或启用 --use-pep517",
  "regex": "DEPRECATION:\\ Legacy\\ editable\\ install\\ of\\ mypkg==0\\.1\\ from\\ file:///path\\ \\(setup\\.py\\ develop\\)\\ is\\ deprecated\\.\\ pip\\ 25\\.0\\ will\\ enforce\\ this\\ behaviour\\ change\\.\\ A\\ possible\\ replacement\\ is\\ to\\ add\\ a\\ pyproject\\.toml\\ or\\ enable\\ \\-\\-use\\-pep517",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "pip install -e . on a project without pyproject.toml falls back to the legacy setup.py develop path, which is slated for removal.",
  "root_cause_type": "generic",
  "root_cause_zh": "在没有 pyproject.toml 的项目上运行 pip install -e . 会回退到传统的 setup.py develop 路径，该路径计划被移除。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Forces the deprecated path and will eventually be removed; also breaks with modern build backends.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "pip 25.0+ enforces the change and the install will fail outright.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "cat > pyproject.toml <<'TOML'\n[build-system]\nrequires = [\"setuptools>=68\", \"wheel\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"mypkg\"\nversion = \"0.1.0\"\nTOML\npip install -e .",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install hatchling\ncat > pyproject.toml <<'TOML'\n[build-system]\nrequires = [\"hatchling\"]\nbuild-backend = \"hatchling.build\"\n\n[project]\nname = \"mypkg\"\nversion = \"0.1.0\"\nTOML\npip 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-08-11",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}