Skip to content

pip install script warnings should ignore dirname(sys.executable) #5157

@pradyunsg

Description

@pradyunsg

From #4553 (comment)

this is a common use case this PR did not cover.

if the executable is installed in dirname(sys.executable), we can skip the warning. Basically, treat dirname(sys.executable) as being a directory on PATH.

The "use case" above, is of installation using venv/bin/pip when invoking without activating a virtualenv.

@pfmoore doesn't feel strongly either way. @ncoghlan is in favour.

Metadata

Metadata

Assignees

Labels

auto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions