dephell vendor download¶
Download and extract project dependencies in a given directory.
dephell vendor download --from=requirements.txt --vendor-path=my_project/_vendor/
Some packages can be nightly and not ready for vendorization. So, you can exclude them:
[tool.dephell.vendorized]
from = {format = "pip", path = "requirements.txt"}
[tool.dephell.vendorized.vendor]
path = "my_project/_vendor"
exclude = ["jinja2", "setuptools"]
And then:
dephell vendor download --env=vendorized
How to find out packages that can’t be vendorized? Do experiment:
git checkout .
- Vendorize.
- Patch imports
- Try to run your project.
- Have
ImportError
orAttributeError
? Add this package intoexclude
list and try again.
See also¶
- vendor commands index to read more about vendorization.
- dephell vendor import to patch all imports in your project.