[Distutils] setup_requires for dev environments

Ionel Cristian Mărieș contact at ionelmc.ro
Thu Mar 19 17:26:36 CET 2015


The --record is for making a list of installed files. You don't need it if
you don't use record.txt anywhere.

As for --single-version-externally-managed, that's unrelated to your
setup_requires pain - you probably already have the eggs around, so they
aren't redownloaded. What --single-version-externally-managed does is force
the package to install in non-egg form (as distutils would). That also
means only setup.py that uses setuptools will have the
--single-version-externally-managed option available.


Thanks,
-- Ionel Cristian Mărieș, http://blog.ionelmc.ro

On Thu, Mar 19, 2015 at 6:17 PM, Chris Barker <chris.barker at noaa.gov> wrote:

> On Thu, Mar 19, 2015 at 9:12 AM, Ionel Cristian Mărieș <contact at ionelmc.ro
> > wrote:
>
>> ​Worth considering​, if you can afford it, to have a local patch that you
>> apply before building. Then you have all the necessary fixes (like remove
>> the setup_requires) in that patch file.
>>
>
> yup -- that's a option -- but a really painful one!
>
> I did, in fact, find an incantation that works:
>
> $PYTHON setup.py install --single-version-externally-managed
> --record=/tmp/record.txt
>
> but boy, is that ugly, and hard to remember  why not a --no-deps flag?
>
> (and I have no idea what the --record thing is, or if it's even
> neccessary...
>
> -Chris
>
>
> This is a popular approach in Debian packages - they can have all kinds of
>> fixes for the upstream code.
>>
>>
>>
>> Thanks,
>> -- Ionel Cristian Mărieș, http://blog.ionelmc.ro
>>
>
>
>
> --
>
> 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/fc6bc161/attachment.html>


More information about the Distutils-SIG mailing list