Skip to content

Commit af60df5

Browse files
authored
Merge pull request #9720 from uranusjr/sysconfig-nt-user-scripts-unify
Drop the SCHEMES['nt_user']['scripts'] shim
2 parents 997b10b + 1068e75 commit af60df5

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)