[IPython-dev] Adding setupttols to iptyhon's setup.py
Andrew Straw
strawman at astraw.com
Wed Dec 12 12:25:45 EST 2007
Ville M. Vainio wrote:
> On Dec 12, 2007 4:11 PM, Gael Varoquaux <gael.varoquaux at normalesup.org> wrote:
>
>
>> I would like to add these lines to the setup.py:
>>
>> """
>> try:
>> from setuptools import setup, find_packages
>> except ImportError:
>> pass
>> """
>>
>> I cannot see waht harm this can do, and I can see the benefit: I install
>> an svn checkout of ipython with:
>>
>> """
>> sudo python setup.py develop --prefix /usr/local
>> """
>>
>> and then maintain this check out by doing "svn up", and this even in
>> windows.
>>
>> What do you think?
>>
>
> This has been discussed extensively in the past, with a halfway
> consensus that we should not do it.
>
> However, there is no harm in your snippet iff you check that 'develop'
> is in sys.argv. We should still try using normal distutils for normal
> situations.
>
>
And don't forget you can always do:
python -c "import setuptools; execfile('setup.py')" develop --prefix
/usr/local
More information about the IPython-dev
mailing list