-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Support a target directory for vendoring (similar to pip --target) #2206
Comments
You can use this as a work around:
|
A couple of possible API designs:
Both would essentially just produce a requirements.txt (maybe in-memory), and use In the mean time, feel free to create your own tool for this, and share it here. |
Can the |
@brettcannon I believe it technically could be, although it would be breaking. I don't think the |
Just to add to this, in my issue (#2445) I proposed the best API for me would be: Describe the solution you'd like I think it'd make sense not to do the equivalent of pipenv install at the same time, ie it'd be like only running pip -t and match its behaviour. Just the dependency would end up managed by pipenv. Note that pip does't have a pip uninstall -t, I think it'd be okay not to have a pipenv uninstall -t also (though pipenv uninstall should still remove it from Pipfile). -- This would make pipenv really nice for managing AWS lambdas, where you need to bundle your dependencies with the source to deploy, but you might want to do a normal |
we are tracking this in our private tracker. |
Is there a way that people without access to the private tracker are able to find out about the status of this kind of thing? I got here by searching for exactly this feature… |
Any update of this feature? |
Any update on this ❤️? Really wish we could specify a manual WORKDIR /app
COPY ./Pipfile /app/
COPY ./Pipfile.lock /app/
RUN env PIPENV_SKIP_LOCK=1 \
PIPENV_VENV_IN_PROJECT=1 \
PIPENV_IGNORE_VIRTUALENVS=1 \
pipenv install --clear --skip-lock --target=/app/.docker-venv
ENV PATH="/app/.docker-venv:${PATH}"
... This way our entire The equivalent feature in other package managers is widely used and appreciated, e.g. |
@kennethreitz @techalchemy was this idea dropped? Was there a conclusion on this issue? |
Now that there's new Pipenv momentum, and some of the leadership appears to have changed, is there any way we could reopen this issue? As far as we can tell from the comments here, this was never resolved, and was somehow opaquely moved to a secret tracker. At the very least, could we track this in public, please? |
3+ weeks and not even a reply. I don't think the request was unreasonable. Was hoping for more with the new wave of Pipenv interest. )-: |
I would also like this functionality -- in my case for keeping packages in a directory for upload into AWS Lambda. AWS suggests installing dependencies into the local project folder here: https://docs.aws.amazon.com/lambda/latest/dg/python-package.html The --target flag would really help here. |
This doesn't actually work for me -- I get an error saying: What you need to do is:
|
Any update on this? Is this planned or not? For me it would truly increase the use value of pipenv. |
We currently vendor some of our dependencies to a target directory, using
pip install -t
. It would be great for pipenv to support this functionality! This is our main blocker to further use.I think right now it may be possible to accomplish by having pipenv generate a
requirements.txt
and pass it to pip to do the install, but that's very manual, and loses features like integrity-checking, so it would be much nicer for pipenv to do it.(I mentioned this at PyCon, just wanted to make a github issue too so I can follow it.)
The text was updated successfully, but these errors were encountered: