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:
1 2 3 |
- name: egg shell: "python setup.py develop" |
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.
1 2 3 |
- name: egg shell: "/path/to/env/bin/python setup.py develop" |