# pip module always indicates change pulling from git

**URL:** <https://forum.ansible.com/t/pip-module-always-indicates-change-pulling-from-git/12110>\
**Category:** Ansible Project\
**Created:** [November 29, 2012, 4:54am UTC](https://forum.ansible.com/t/pip-module-always-indicates-change-pulling-from-git/12110 "2012-11-29T04:54:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keith](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@keith](https://forum.ansible.com/u/keith)\
**Post date:** [November 29, 2012, 4:54am UTC](https://forum.ansible.com/t/pip-module-always-indicates-change-pulling-from-git/12110/1 "2012-11-29T04:54:22Z")

</div>

Hello,

My pip module results always indicate “change.” It seems that pip likes to report “Successfully installed” for git packages, or at least commit identified packages, and this throws off the simple change test.

Based on my results below, a proposed change to \_did\_install is given following, but it is short enough and I am not sure enough of all the permutations of pip output to know how general it so so that I didn’t do a pull request.

def \_did\_install(out):  
return ‘Successfully installed’ in out and out.count(‘Installed’) \> out.count(‘is already the active version’)

Thanks,

Keith

I am using a requirements.txt file as follows:

Django==1.4.2  
-e git+https://github.com/toastdriven/django-tastypie@94ceb21b091bff26741057bbab42b30bc0ad7dcd#egg=django\_tastypie-dev  
-e git://github.com/tryolabs/django-tastypie-extendedmodelresource.git@2f7ab47320f8003d2da0f54824e5c24533dd8205#egg=django\_tastypie\_extendedmodelresource-dev  
MySQL-python==1.2.3  
[MORE FILES]  
pytz==2012d  
-e git://github.com/mfogel/django-timezone-field@ef77e2928aabcedc14b7ba386f547249dc1597a8#egg=django\_timezone\_field-dev  
[MORE FILES]

my “out” result then looks like below, no matter how many times I repeat the run:

[MANY “Requirement already satisfied”]

Requirement already satisfied (use --upgrade to upgrade): httplib2 in ./code/venv/lib/python2.7/site-packages (from oauth2\>=1.5.167-\>django-social-auth==0.7.5-\>-r /home/vagrant/Tryolabs/deploy/vars/  
…/templates/celery/lively/requirements.txt (line 13))  
Installing collected packages: django-tastypie, django-tastypie-extendedmodelresource, django-timezone-field  
Running setup.py develop for django-tastypie

Creating /home/vagrant/Tryolabs/deploy/code/venv/lib/python2.7/site-packages/django-tastypie.egg-link (link to .)  
django-tastypie 0.9.12-alpha is already the active version in easy-install.pth

Installed /home/vagrant/Tryolabs/deploy/code/venv/src/django-tastypie  
Running setup.py develop for django-tastypie-extendedmodelresource

Creating /home/vagrant/Tryolabs/deploy/code/venv/lib/python2.7/site-packages/django-tastypie-extendedmodelresource.egg-link (link to .)  
django-tastypie-extendedmodelresource 0.22-dev is already the active version in easy-install.pth

Installed /home/vagrant/Tryolabs/deploy/code/venv/src/django-tastypie-extendedmodelresource  
Running setup.py develop for django-timezone-field

Creating /home/vagrant/Tryolabs/deploy/code/venv/lib/python2.7/site-packages/django-timezone-field.egg-link (link to .)  
django-timezone-field 0.3.0 is already the active version in easy-install.pth

Installed /home/vagrant/Tryolabs/deploy/code/venv/src/django-timezone-field  
Successfully installed django-tastypie django-tastypie-extendedmodelresource django-timezone-field

---

<div class="post-metadata">

**Author:** ![Stephen\_Fromm](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Stephen\_Fromm](https://forum.ansible.com/u/Stephen_Fromm)\
**Post date:** [November 30, 2012, 12:33am UTC](https://forum.ansible.com/t/pip-module-always-indicates-change-pulling-from-git/12110/2 "2012-11-30T00:33:54Z")

</div>

Please open an issue on github so we can track this issue toward resolution.  
Thanks!

sf

---

<div class="post-metadata">

**Author:** ![keith](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@keith](https://forum.ansible.com/u/keith)\
**Post date:** [November 30, 2012, 2:22am UTC](https://forum.ansible.com/t/pip-module-always-indicates-change-pulling-from-git/12110/3 "2012-11-30T02:22:40Z")

</div>

Posted as github issue just now per your request.
