[Distutils] current preferred way to specify dependencies? future?
Sridhar Ratnakumar
sridharr at activestate.com
Wed Jan 6 17:49:37 CET 2010
On 1/6/2010 8:23 AM, John Gabriele wrote:
> On Wed, Jan 6, 2010 at 11:07 AM, Carl Meyer<carl at dirtcircle.com> wrote:
>> >
>> > {snip} Following the principle of least surprise I would assume
>> > they would be requires_dist, provides_dist, etc, and would take lists of
>> > strings, in the same format as in the PEP (name followed by version spec
>> > in parenths).
>> > {snip}
>> >
>>> >> If my FooBar-0.1.0 distribution depends upon packages and modules in
>>> >> CoolStuff-2.0.0 and ReallyNeatStuff-1.5.5, what's the current best way
>>> >> to say so, and what's going to be the standard going forward?
>> >
>> > The current most-often-used way to say so is to the setuptools-specific
>> > argument install_requires=['CoolStuff==2.0.0', 'ReallyNeatStuff==1.5.5']
>> > (though that's being perhaps a bit more precise with the version
>> > specifiers than you'd really want to be). Obviously that's only
>> > supported if you use setuptools. The standard going forward will
>> > hopefully be PEP 345.
> Great. Thanks. Then, I'd like to put:
>
> requires_dist=['CoolStuff>=2.0.0', 'ReallyNeatStuff>=1.5.5'],
>
> into my `setup()` call. Currenlty, I've got this at the top of my `setup.py`:
>
> from distutils.core import setup
>
> What do I need to change that to, in order for (A) the `requires_dist`
> argument to work, and (B) in order to use Distribute rather than
> setuptools?
`requires_dist` is not implemented yet, you'll have to use Distribute or
setuptools. See http://packages.python.org/distribute/using.html
-srid
More information about the Distutils-SIG
mailing list