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 3209ad0 commit 1501272Copy full SHA for 1501272
news/9844.bugfix.rst
@@ -0,0 +1 @@
1
+Fix ``--user`` install scheme selection for macOS framework build.
src/pip/_internal/locations/_sysconfig.py
@@ -52,7 +52,10 @@ def _infer_prefix() -> str:
52
53
def _infer_user() -> str:
54
"""Try to find a user scheme for the current platform."""
55
- suffixed = f"{os.name}_user"
+ if sysconfig.get_config_var("PYTHONFRAMEWORK"): # Mac framework build.
56
+ suffixed = "osx_framework_user"
57
+ else:
58
+ suffixed = f"{os.name}_user"
59
if suffixed in _AVAILABLE_SCHEMES:
60
return suffixed
61
if "posix_user" not in _AVAILABLE_SCHEMES: # User scheme unavailable.
0 commit comments