We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ba96c commit 991d0f4Copy full SHA for 991d0f4
news/9844.bugfix.rst
@@ -0,0 +1 @@
1
+Fix ``--user`` install scheme selection for macOS framework build.
src/pip/_internal/locations/_sysconfig.py
@@ -54,7 +54,10 @@ def _infer_prefix():
54
def _infer_user():
55
# type: () -> str
56
"""Try to find a user scheme for the current platform."""
57
- suffixed = f"{os.name}_user"
+ if sysconfig.get_config_var("PYTHONFRAMEWORK"): # Mac framework build.
58
+ suffixed = "osx_framework_user"
59
+ else:
60
+ suffixed = f"{os.name}_user"
61
if suffixed in _AVAILABLE_SCHEMES:
62
return suffixed
63
if "posix_user" not in _AVAILABLE_SCHEMES: # User scheme unavailable.
0 commit comments