8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b1722 commit 2a009a0Copy full SHA for 2a009a0
src/pip/_internal/locations/_sysconfig.py
@@ -127,8 +127,11 @@ def get_scheme(
127
128
paths = sysconfig.get_paths(scheme=scheme_name, vars=variables)
129
130
- # Pip historically uses a special header path in virtual environments.
131
# Logic here is very arbitrary, we're doing it for compatibility, don't ask.
+ # 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.
135
if running_under_virtualenv():
136
if user:
137
base = variables.get("userbase", sys.prefix)
0 commit comments