From 25b9bbc24ba342dbb70ef7634980c28ed477f7e1 Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Fri, 29 Aug 2025 11:16:49 +0300
Subject: [PATCH 128/N] sysconfig: Revert changes to NT schemes. Mingw use
 Posix schemes

---
 Lib/sysconfig/__init__.py | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py
index 24900b1..dff99c8 100644
--- a/Lib/sysconfig/__init__.py
+++ b/Lib/sysconfig/__init__.py
@@ -49,14 +49,13 @@ _INSTALL_SCHEMES = {
         'data': '{base}',
         },
     'nt': {
-        'stdlib': '{installed_base}/lib/{implementation_lower}{py_version_short}',
-        'platstdlib': '{base}/lib/{implementation_lower}{py_version_short}',
-        'purelib': '{base}/lib/{implementation_lower}{py_version_short}/site-packages',
-        'platlib': '{base}/lib/{implementation_lower}{py_version_short}/site-packages',
-        'include': '{installed_base}/include/{implementation_lower}{py_version_short}',
-        'platinclude': '{installed_base}/include/{implementation_lower}{py_version_short}',
-        'scripts': '{base}/bin',
-        'data': '{base}',
+        'stdlib': '{installed_base}/Lib',
+        'platstdlib': '{base}/Lib',
+        'purelib': '{base}/Lib/site-packages',
+        'platlib': '{base}/Lib/site-packages',
+        'include': '{installed_base}/Include',
+        'platinclude': '{installed_base}/Include',
+        'scripts': '{base}/Scripts',
         },
 
     # Downstream distributors can overwrite the default install scheme.
@@ -139,12 +138,12 @@ if _HAS_USER_BASE:
     _INSTALL_SCHEMES |= {
         # NOTE: When modifying "purelib" scheme, update site._get_path() too.
         'nt_user': {
-            'stdlib': '{userbase}/lib/python{py_version_short_plat}',
-            'platstdlib': '{userbase}/lib/python{py_version_short_plat}',
-            'purelib': '{userbase}/lib/python{py_version_short_plat}/site-packages',
-            'platlib': '{userbase}/lib/python{py_version_short_plat}/site-packages',
-            'include': '{userbase}/include/python{py_version_short_plat}',
-            'scripts': '{userbase}/bin',
+            'stdlib': '{userbase}/{implementation}{py_version_nodot_plat}',
+            'platstdlib': '{userbase}/{implementation}{py_version_nodot_plat}',
+            'purelib': '{userbase}/{implementation}{py_version_nodot_plat}/site-packages',
+            'platlib': '{userbase}/{implementation}{py_version_nodot_plat}/site-packages',
+            'include': '{userbase}/{implementation}{py_version_nodot_plat}/Include',
+            'scripts': '{userbase}/{implementation}{py_version_nodot_plat}/Scripts',
             'data': '{userbase}',
             },
         'posix_user': {
