[Distutils] Bundling Distribute

Tarek Ziadé ziade.tarek at gmail.com
Thu Nov 5 21:49:42 CET 2009


On Thu, Nov 5, 2009 at 8:58 PM, Ram Rachum <cool-rr at cool-rr.com> wrote:
> Hello,
>
> I would like to bundle Distribute with my project
> so that I could use it without making my users
> install it. (I like to keep things as simple as
> possible for my users.)
>
> Is it possible? I thought of just copying the
> "setuptools" folder from the source distribution
> into a package in my project, so instead of doing
> `from setuptools import setup`, I would do
> `from third_party.setuptools import setup`.
>
> Does it make sense? Will it work? Anything else I
> should keep in mind?

Hello,

It is possible to bundle, but the best strategy depends on what you are
doing in your project with Distribute. e.g. using it to provide
specific options in your setup.py, or using its
APIs, like what pkg_resources provides to query entry points for example.

Tarek


More information about the Distutils-SIG mailing list