[Distutils] pip and distutils

Vraj Mohan r.vrajmohan at gmail.com
Wed Jan 30 14:08:48 CET 2013


Thanks everyone.

Using install_requires=["Foo >= 0.7", "Bar >= 2.4.5"] and importing
setup from setuptools and not
 distutils worked perfectly for me.

--Vraj Mohan

On Wed, Jan 30, 2013 at 7:35 AM, Marius Gedminas <marius at pov.lt> wrote:
> On Tue, Jan 29, 2013 at 12:40:17PM -0500, Donald Stufft wrote:
>>
>>
>> On Monday, January 28, 2013 at 5:46 PM, Vraj Mohan wrote:
>>
>> > ---------- Forwarded message ----------
>> > From: Vraj Mohan <r.vrajmohan at gmail.com (mailto:r.vrajmohan at gmail.com)>
>> > Date: Mon, Jan 28, 2013 at 4:31 PM
>> > Subject: pip and distutils
>> > To: python-list at python.org (mailto:python-list at python.org)
>> >
>> > I have created a source distribution using distutils which specifies
>> > external packages using:
>> >
>> > setup(
>> > ...,
>> > requires = ['Foo (>= 0.7)', 'Bar (>= 2.4.5)'],
>> > ...
>> > )
>> >
>> > When I use pip to install this distribution, I find that it does not
>> > automatically install the packages Foo and Bar. What extra step do I
>> > need to perform to have pip automatically install the "required"
>> > packages?
>> >
>> > I am using Python 3.2.3.
>>
>> You're using the distutils2 Syntax but pip is built ontop of setuptools.
>>
>> You want requires  = ["Foo>=0.7", Bar>=2.4.5"]
>
> I think you meant
>
>     install_requires=["Foo >= 0.7", "Bar >= 2.4.5"],
>
> (This also requires that you import setup from setuptools and not
> distutils.)
>
> Marius Gedminas
> --
> Look!  Before our very eyes, the future is becoming the past.
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
>


More information about the Distutils-SIG mailing list