Prevent pipx from erroneously listing other apps installed outside of pipx #650
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
docs/changelog.md
Summary of changes
Closes #564, #548.
This fixes some code goofs that allowed pipx to proclaim that pre-existing binaries in
~/.local/bin
were part of a pipx install when they were in fact installed previously usingpip install --user
.First fix is not to search for apps of dependencies if we didn't include dependencies on install.
Second fix is to fall back to checking non-symlinks only on non-symlink systems. Previously we would check non-symlinks always if we encountered a file that was not a symlink, which was not the intent of the if statement.
Test plan
Tested by running:
pipx should only list the app 'twine' associated with venv 'twine'. 'keyring' is a dependency and should not be listed.
This PR:
pipx 0.16.1.0