How to run python setup.py develop command inside virtualenv using ansible

Question:

I want to execute python setup.py develop command inside of virtualenv using ansible.
How to do it?

Probably could be something like this:

But I need to execute it inside of virtualenv. How can I do it?

Answer:

One way is to call python from the virtualenv’s bin directory.

Leave a Reply