[Distutils] Time for a setuptools_lite??

Robert Collins robertc at robertcollins.net
Wed Oct 21 22:27:04 EDT 2015


On 22 October 2015 at 12:59, Chris Barker <chris.barker at noaa.gov> wrote:
> On Wed, Oct 21, 2015 at 4:52 PM, Robert Collins <robertc at robertcollins.net>
> wrote:
>>
>> > Hmm, now that I think about it, maybe I can just banish setuptools from
>> > my
>> > setup.py, stick with distutils, and then make sure to use pip to
>> > actually
>> > invoke anything -- so it will inject setuptools, but only use the bits
>> > we
>> > need....
>> >
>> > I'll have to try that.....
>>
>> You won't gain anything from that. distutils doesn't track installed
>> files either. You *must* use 'pip install .' or 'setup.py bdist_wheel'
>> + 'pip install .' with the current ecosystem state,
>
>
> I guess I wasn't clear -- the idea was to force myself to use pip install,
> rather than ever doing a plain
>
> setup.py install or
> setup.py develop
>
> so:
>  pip install ./
> or
>  pip install -e ./
>
> this way, pip will inject the parts of setuptools I really need, but
> hopefully not any other cruft.

Its precisely the same as doing

"""
import setuptools
from distutils import setup

...
setup()

"""

Except that other people may still run setup.py directly, and then
you'll be picking up the pieces :).

-Rob

-- 
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Converged Cloud


More information about the Distutils-SIG mailing list