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

Unlinking Packages in Py-Rattler #1140

Open
2 tasks done
iamthebot opened this issue Mar 4, 2025 · 2 comments
Open
2 tasks done

Unlinking Packages in Py-Rattler #1140

iamthebot opened this issue Mar 4, 2025 · 2 comments

Comments

@iamthebot
Copy link
Contributor

iamthebot commented Mar 4, 2025

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

Maybe I'm missing something obvious but via py-rattler there's no ability to unlink (i.e uninstall) a package explicitly. Maybe we can just expose the link_file + unlink_package lower level methods in py-rattler?

Or a cleaner approach might be to expose a high level method to uninstall a package by name/PrefixRecord in Installer.

Why is this needed?

Currently, we handle unlinking ourselves outside of rattler. However, this is something users of py-rattler will want to do routinely.

Happy to take a stab at a PR.

@baszalmstra
Copy link
Collaborator

Package can be uninstalled by not including packages when invoking install.

But I think it makes sense to add the lower level link- and unlink package functions to py-rattler.

Happy to accept a PR

@iamthebot
Copy link
Contributor Author

Started working on a PR for this. Just need to finish some unit tests. Will try to wrap it up tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants