Skip to content

Commit 1068e75

Browse files
committed
Drop the SCHEMES['nt_user']['scripts'] shim
I dug into CPython commit history and this was fixed in 3.5, so we shouldn't need this? Let's find out...
1 parent a6b5e90 commit 1068e75

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/pip/_internal/locations/_sysconfig.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,6 @@ def get_scheme(
136136
python_xy = f"python{get_major_minor_version()}"
137137
paths["include"] = os.path.join(base, "include", "site", python_xy)
138138

139-
# Special user scripts path on Windows for compatibility to distutils.
140-
# See ``distutils.commands.install.INSTALL_SCHEMES["nt_user"]["scripts"]``.
141-
if scheme_name == "nt_user":
142-
base = variables.get("userbase", sys.prefix)
143-
python_xy = f"Python{sys.version_info.major}{sys.version_info.minor}"
144-
paths["scripts"] = os.path.join(base, python_xy, "Scripts")
145-
146139
scheme = Scheme(
147140
platlib=paths["platlib"],
148141
purelib=paths["purelib"],

0 commit comments

Comments
 (0)