poise / python

THIS COOKBOOK IS DEPRECATED – Chef cookbook to install Python and related tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does pip install support pip package installation from requirements file ?

BAjayKrishna opened this issue · comments

Current pip install provider https://github.com/poise/python/blob/master/providers/pip.rb#L33-L52 does not support package installation from requirements file. Which is possible through -r option from command line. Is there a plan to provide it in future releases ?

What did you find that made you close this?

I suppose it was closed because installing from requirements just works.
Here is an example:

python_pip '/path/to/project/requirements.txt' do
    user 'nobody'
    group 'nogroup'
    virtualenv 'path/to/project/.virtualenv'
    action :install
    options '-r'
end

@aspyatkin Or, with poise-python, python_requirements '/path/to/project/requirements.txt'