8000 Better explanatory comment · pypa/pip@2a009a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a009a0

Browse files
committed
Better explanatory comment
1 parent e7b1722 commit 2a009a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pip/_internal/locations/_sysconfig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ def get_scheme(
127127

128128
paths = sysconfig.get_paths(scheme=scheme_name, vars=variables)
129129

130-
# Pip historically uses a special header path in virtual environments.
131130
# Logic here is very arbitrary, we're doing it for compatibility, don't ask.
131+
# 1. Pip historically uses a special header path in virtual environments.
132+
# 2. If the distribution name is not known, distutils uses 'UNKNOWN'. We
133+
# only do the same when not running in a virtual environment because
134+
# pip's historical header path logic (see point 1) did not do this.
132135
if running_under_virtualenv():
133136
if user:
134137
base = variables.get("userbase", sys.prefix)

0 commit comments

Comments
 (0)
0