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 <[email protected] (mailto:[email protected])> > > Date: Mon, Jan 28, 2013 at 4:31 PM > > Subject: pip and distutils > > To: [email protected] (mailto:[email protected]) > > > > 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.
signature.asc
Description: Digital signature
_______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
