On Fri, Nov 02, 2007 at 01:06:08PM -0700, Christopher Barker wrote: > Ned Deily wrote: > > The easiest way is to use the install_requires keyword in setup.py. See > > the setuptools documentation here: > > > > <http://peak.telecommunity.com/DevCenter/setuptools> > > That appears to handle dependencies: > > install_requires > A string or list of strings specifying what other distributions need to > be installed when this one is. See the section below on Declaring > Dependencies for details and examples of the format of this argument. > > Which looks quite dangerous, as a matter of fact. For example, I do > > easy_install foo > > foo has install_requires("numpy==1.0.3") > > now setuptools will download and install numpy1.0.3, but it won't get > used, 'cause there is an older numpy earlier on the pythonpath.
From <http://peak.telecommunity.com/DevCenter/setuptools#declaring-dependencies>: > Any scripts in your project will be installed with wrappers that > verify the availability of the specified dependencies at runtime, and > ensure that the correct versions are added to sys.path (e.g. if > multiple versions have been installed). setuptools definitely supports multiple versions of packages being installed at once, and the ability to select them. It rewrites your scripts for you at installation time to resolve the depdendencies. If you want to use the versioned dependencies during development, that's what 'setup.py develop' is for. -- Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig