[Distutils] setup_requires for dev environments

Chris Barker chris.barker at noaa.gov
Thu Mar 19 16:38:38 CET 2015


On Wed, Mar 18, 2015 at 9:02 AM, Ionel Cristian Mărieș <contact at ionelmc.ro>
wrote:

>
> On Wed, Mar 18, 2015 at 5:33 PM, Chris Barker - NOAA Federal <
> chris.barker at noaa.gov> wrote:
>
>> I don't want it downloading and installing dependencies when I go to
>> build. That's an install- time task.
>>
>
> Sounds to me like you should not use setup_requires then - if you don't
> like what it does.
>

My use case at the moment is trying to build conda packages from other
peoples' Python packages - if they use setup_requires, etc, then I'm stuck
with it.

Also -- for my packages, I want them to be easy to build and deploy by
others that aren't using conda -- so I need a way to do that - which would
be setuptools' features.

So I'd like the features of the "official" python packaging tools to
cleanly separated and not assume that if you're using setuptools you are
also using pip, etc....


Also, for the whole distutils-sig, I don't understand all the fuss around
> this much maligned feature - there are plenty of options to manage
> build-time dependencies and tasks - one certainly doesn't need to shoehorn
> <https://github.com/ipython/ipython/blob/master/setup.py> a full blown
> build system into setup.py - there's make, invoke, shell scripts and plenty
> of other systems that can do that just fine​.
>

None of those are cross platform, though. That still may be the way to go.

I like to keep in mind that with all this pain, in fact, even raw distutils
is freaking awesome at making the easy stuff easy.

( pip and pypi too...)

i.e. I can write a simple C extnaion (or Cyton, even), and a very simple
boilerplate setup.py will let it build and install on all major platfroms
out of the box. Then I put it up on PyPi and anyone can do a "pip install
my_package" and away they go.

-Chris


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150319/f3b8bbe2/attachment.html>


More information about the Distutils-SIG mailing list