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

Always reinstall editables #9169

Merged
merged 3 commits into from
Nov 28, 2020
Merged

Conversation

pradyunsg
Copy link
Member

Closes #9116

As discussed in #9147, we should reinstall editables even if the already installed distribution is editable.

Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
@pradyunsg pradyunsg added C: editable Editable installations C: new resolver labels Nov 28, 2020
@pradyunsg pradyunsg added this to the 20.3 milestone Nov 28, 2020
Signed-off-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
@pradyunsg
Copy link
Member Author

(the failing MacOS test is a pip search test)

@@ -178,6 +178,8 @@ def resolve(self, root_reqs, check_supported_wheels):
gone_in="21.1",
issue=8711,
)

# is a local sdist or path -- reinstall
Copy link
Member

Choose a reason for hiding this comment

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

This case did cover the editable reinstall from local directory. This PR alsos covers editable reinstall of VCS urls 👍

@uranusjr
Copy link
Member

I wonder if we should reinstall editable VCS. It has significantly more overhead than local path, and likely depended by less in their development workflow.

@uranusjr
Copy link
Member

(We might eventually decide to always reinstall it, depending on how the discussion in #8711 goes; but I feel it deserves a discussion.)

@sbidoul
Copy link
Member

sbidoul commented Nov 28, 2020

I totally agree it deserves a discussion. 20.2.4 did reinstall, though, so it's probably good to keep reinstalling for the sake of backward compatibility ?

@pradyunsg
Copy link
Member Author

Yup -- that's the idea here. We can have longer detailed discussions in the future; right now though, we should probably synchronise with 20.2.* behaviour. :)

@pradyunsg pradyunsg merged commit b6ca743 into pypa:master Nov 28, 2020
@pradyunsg pradyunsg deleted the always-reinstall-editables branch November 28, 2020 20:09
@pradyunsg
Copy link
Member Author

Thanks for the review @sbidoul! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: editable Editable installations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pip 20.3b1 fails to reinstall packages in -e . mode (despite changes)
3 participants