-
-
Notifications
You must be signed in to change notification settings - Fork 614
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
How to exclude a certain package from pip-sync? #686
Comments
Good question! Maybe we need to implement something like |
|
Another thought, @Midnighter : After you build your frozen If you have in your
that line will be present in the |
A big feature of |
I was talking about runtime, not install-time 🙂 |
Sorry, my mind might be elsewhere, but I don't know what you're getting at. My understanding is that this issue is about deployment workflow. |
Indeed, the context is about layering 2-3 container images and making them fully reproducible/deterministic.
This is a fair point and that is actually what I have been doing to get around the issue. It just seems natural to use pip-sync when I use pip-compile to prepare the requirements, hence this issue. If I'm not missing out on anything else that pip-sync is doing then I'm happy to continue to use the following command (I do generate and want to check hashes):
|
This is a more broad question about how to approach a specific workflow.
My use case is the following: I want to layer multiple Docker images. In the easiest case I have one base image that uses pip-tools to install a number of packages. Subsequent images "inheriting" from that base image then need to specify all compiled requirements files in order to not remove packages with pip-sync. So far so good.
My problem is that the base image should also install a large package from a local source. I can simply specify this dependency with
-e path/to/local/package
and be done with it but that requires me to keep content of that directory around. Since I try to keep my Docker layers small I would ideally only install the package once and then remove the directory again. However, if I remove the directory pip-sync obviously fails. So is there an easy way for me to exclude that local package from being considered by pip-sync? That would make my life a lot easier.The text was updated successfully, but these errors were encountered: