[Distutils] specifying --with-featurename with ez_setup.py / easy_install
Phillip J. Eby
pje at telecommunity.com
Mon Oct 3 03:07:38 CEST 2005
At 05:11 PM 10/2/2005 -0500, Matthew Scott wrote:
>When building/installing a package using a setuptools-based setup.py,
>you can do things like this to enable packages for optional features:
>
> python --with-featurename setup.py install
Actually, it's "python setup.py --with-featurename install"
>I can't figure out how to use easy_install / ez_setup.py to do this
>though. This doesn't work:
>
> easy_install -f http://example.com/dist PackageName --with-featurename
>
>Nor does this:
>
> easy_install --with-featurename -f http://example.com/dist PackageName
>
>Is this possible with easy_install?
Yes and no. What you want is the --editable option, which gets you a
source version of the package. Then you use "python setup.py
--with-featurename install".
In other words, if you need to do a custom build of a package, you can only
use easy_install to find/fetch/unpack it. You also have the option of
using "--with-featurename bdist_egg" to build an egg, then using
easy_install to install the egg.
More information about the Distutils-SIG
mailing list