-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
ENH Add support for reinstalling packages (take 2) #206
base: main
Are you sure you want to change the base?
Conversation
micropip/install.py
Outdated
with indent_log(): | ||
uninstall_distributions(distributions, logger) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this only happen if reinstall
is True
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The distributions
parameter will always be an empty list if reinstall is false, as the transaction will not add any package that are already installed when reinstall is false.
But I think I can add that check just in case.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Resolve #51
Rebases #64.
This adds a new parameter,
reinstall
to the micropip.install API.When the requested package is already installed in the system, and if it is not compatible:
reinstall
== False (default): raises error.reinstall
== True: uninstall the installed package and install the new one.