[Distutils] bundling packages with setuptools?

Kevin Dangoor dangoor at gmail.com
Mon Jan 16 18:20:01 CET 2006


(readding distutils-sig which I accidentally dropped)

On 1/16/06, Christopher Fonnesbeck <chris at trichech.us> wrote:
> On Jan 16, 2006, at 11:54 AM, Kevin Dangoor wrote:
>
> > Yes. This is something setuptools does quite admirably. This is in the
> > setup.py for TurboGears:
> >
> >     install_requires = ["TurboKid >= 0.9.0",
> >         "CherryPy > 2.1.1",
> >         "SQLObject >= 0.7.1dev_r1457", "simplejson >= 1.1",
> >         "elementtree >= 1.2.6", "PasteScript >= 0.4.1",
> >         "cElementTree >= 1.0.2", "FormEncode >= 0.4",
> >         "setuptools >= 0.6a8",
> >         "RuleDispatch"],
> >
> > Running easy_install on the TurboGears package will go and fetch all
> > of those pre-requisites.
> >
> > So, easy_install is the installer, and your egg includes the metadata
> > about which packages it needs.
>
> This is what I was hoping. What about URLs? The packages dont have to
> be in the cheese shop, do they?

Nope. TurboGears uses some packages that aren't in the Cheeseshop. You
can use the -f/--find-links option to tell easy_install where to look.
You can see the TurboGears installation instructions to see the full
process:

http://www.turbogears.org/download/index.html

Generally, pretty easy. If you have all of the eggs available on your
local machine, you can also have setuptools run with those eggs.

Kevin


More information about the Distutils-SIG mailing list