Pipenv: How about a subcommand to vendor packages?

Created on 1 Dec 2017  路  5Comments  路  Source: pypa/pipenv

Occasionally I want to vendor packages, so with a requirements.txt based workflow, I would have executed pip download -r requirements.txt -d vendor. As far as I can tell, pipenv doesn't have an subcommand to do this. It would be great to have such an option.

Also, in addition it would be cool to choose whether to vendor development packages, or whether to not vendor them.

Most helpful comment

Ok.

I found that I can use to solve the issue I had when I opened this ticket. Maybe useful for people who stumble over this issue when googling for something similar.

% pipenv lock -r > foo.txt
% pip download -d vendor -r foo.txt

All 5 comments

Not just for download I'm using install to manually include the package source code in my project.

pip install -r vendor.txt -t vendor/  --upgrade

It will be great pipenv support these features.

no, this is not trivial in python

Do I understand this correctly? pip download of pinned sdists is non-trivial? I wouldn't have thought so, but then, I am not very familiar with pip/setuptools internals.

it's more about import styles, absolute vs relative.

Ok.

I found that I can use to solve the issue I had when I opened this ticket. Maybe useful for people who stumble over this issue when googling for something similar.

% pipenv lock -r > foo.txt
% pip download -d vendor -r foo.txt
Was this page helpful?
0 / 5 - 0 ratings

Related issues

AkiraSama picture AkiraSama  路  3Comments

jakul picture jakul  路  3Comments

hynek picture hynek  路  3Comments

erinxocon picture erinxocon  路  3Comments

xi picture xi  路  3Comments