Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install was skipping packages that were installed elsewhere #5255

Merged
merged 5 commits into from
Aug 15, 2022

Conversation

matteius
Copy link
Member

Fixes #5254

The issue

Elsewhere we use project_python(project) but in my testing I was able to reproduce #5254 and discovered it was skipping platformdirs because it was already installed to my site-packages.

@matteius matteius requested a review from oz123 August 14, 2022 16:49
@@ -1529,7 +1526,7 @@ def pip_install(
)

pip_command = [
project._which("python", allow_global=allow_global),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how many other issues this method causes... and there is also project.which... what a horror ...

@matteius matteius merged commit dbea3f5 into main Aug 15, 2022
@matteius matteius deleted the issue-5254 branch August 15, 2022 03:44
@matteius matteius changed the title Issue 5254 pip install was skipping packages that were installed elsewhere Aug 15, 2022
yeisonvargasf pushed a commit to yeisonvargasf/pipenv that referenced this pull request Nov 19, 2022
* Fix for python not defaulting to the virtualenv during a pip install.  Add --ignore-installed flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pipenv 2022.8.5.13 introduced an issue with platformdirs
2 participants