)]}'
{
  "commit": "c4f492884ae211a286911318a9486b6d7aee64f1",
  "tree": "f4d90c6cc89bd2b3d577a16a265312b76c35d636",
  "parents": [
    "369d8bc4f6fe1f751de2512523a1acb95491a5eb"
  ],
  "author": {
    "name": "Abhinav",
    "email": "alpha9coder@gmail.com",
    "time": "Sun Nov 15 20:18:41 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Nov 15 20:18:41 2026"
  },
  "message": "gh-157917: Do not leak the \\\\?\\ extended-length prefix into sys.prefix on Windows venvs (GH-158465)\n\nWhen a venv interpreter is invoked through a \"\\\\?\\\" extended-length path, the\nvenv launcher reports its own path via GetModuleFileNameW, which preserves\nthat prefix. getpath.py consumed the value verbatim, so sys.prefix,\nsys.exec_prefix and sys.executable all kept the prefix.\n\nWindows does not resolve \"..\" or any other relative component in an\nextended-length path, so tools that join them onto a sysconfig path break.\nThat is what makes \"pip install\" of a wheel with a \"scripts\u003d\" entry fail with\n\"OSError: [Errno 22] Invalid argument\".\n\nStrip the prefix back off the launcher-provided path on Windows. A path that\nwould still exceed MAX_PATH once unprefixed keeps the prefix, since the\nextended-length form is the only usable one for it.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bcb782a8d10c3ae67251a248dfe38c0df8f9fa3c",
      "old_mode": 33188,
      "old_path": "Lib/test/test_venv.py",
      "new_id": "eded0e5040d1480fe1da339cd2d712b05fc72c11",
      "new_mode": 33188,
      "new_path": "Lib/test/test_venv.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2d5e6a14a31d53f935dcd5041e4b44d85a17f06a",
      "new_mode": 33188,
      "new_path": "Misc/NEWS.d/next/Windows/2026-09-30-00-00-00.gh-issue-157917.48oa0L.rst"
    },
    {
      "type": "modify",
      "old_id": "2ffb1d964c0fb630b0229d406713b14b42ad247a",
      "old_mode": 33188,
      "old_path": "Modules/getpath.py",
      "new_id": "6afbe4c68985569780cd08941cfd29dede0d9bae",
      "new_mode": 33188,
      "new_path": "Modules/getpath.py"
    }
  ]
}
