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 9f18a40 commit 8e7b395Copy full SHA for 8e7b395
news/10565.bugfix.rst
@@ -0,0 +1 @@
1
+Only warn about running pip as root on BSD systems if it is actually being run as root
src/pip/_internal/cli/req_command.py
@@ -173,7 +173,9 @@ def warn_if_run_as_root() -> None:
173
# checks: https://mypy.readthedocs.io/en/stable/common_issues.html
174
if sys.platform == "win32" or sys.platform == "cygwin":
175
return
176
- if sys.platform == "darwin" or sys.platform == "linux":
+ if (sys.platform == "darwin" or sys.platform == "linux" or
177
+ sys.platform.startswith("openbsd") or sys.platform.startswith("freebsd") or
178
+ sys.platform.startswith("netbsd")):
179
if os.getuid() != 0:
180
181
logger.warning(
0 commit comments