[openstack-dev] On the usage of pip vs. setup.py install

Joshua Harlow harlowja at yahoo-inc.com
Tue Sep 24 04:43:17 UTC 2013


I wonder who got the plague if u got the food :-/

Sent from my really tiny device...

On Sep 23, 2013, at 8:07 PM, "Michael Basnight" <mbasnight at gmail.com> wrote:

> But I got suddenly full. Interesting thing that is. 
> 
> Sent from my digital shackles
> 
>> On Sep 23, 2013, at 7:16 PM, Joshua Harlow <harlowja at yahoo-inc.com> wrote:
>> 
>> I ran that but world peace didn't happen.
>> 
>> Where can I get my refund?
>> 
>> Sent from my really tiny device...
>> 
>>> On Sep 23, 2013, at 6:47 PM, "Monty Taylor" <mordred at inaugust.com> wrote:
>>> 
>>> tl;dr - easy_install sucks, so use pip
>>> 
>>> It is common practice in python to run:
>>> 
>>> python setup.py install
>>> or
>>> python setup.py develop
>>> 
>>> So much so that we spend a giant amount of effort to make sure that
>>> those always work.
>>> 
>>> Fortunately for us, the underlying mechanism, setuptools, can often be a
>>> pile of monkies. pip, while also with its fair share of issues, _is_ a
>>> bit better at navigating the shallow waters at times. SO - I'd like to
>>> suggest:
>>> 
>>> Instead of:
>>> 
>>> "python setup.py install"
>>> 
>>> Run:
>>> 
>>> "pip install ."
>>> 
>>> It should have the exact same result, but pip can succeed in some places
>>> where setup.py install directly can fail.
>>> 
>>> Also, if you'd like to run python setup.py develop, simply run:
>>> 
>>> "pip install -e ."
>>> 
>>> Which you may not have known will run setup.py develop behind the scenes.
>>> 
>>> Things this will help with:
>>> - world peace
>>> - requirements processing
>>> - global hunger
>>> - the plague
>>> 
>>> Enjoy.
>>> 
>>> Monty
>>> 
>>> PS. The other should work. It's just sometimes it doesn't, and when it
>>> doesn't it's less my fault.
>>> 
>>> _______________________________________________
>>> OpenStack-dev mailing list
>>> OpenStack-dev at lists.openstack.org
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>> 
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list