[Distutils] (b)dist-dir questions

Phillip J. Eby pje at telecommunity.com
Wed Nov 16 00:44:19 CET 2005

At 03:32 PM 11/15/2005 -0800, daishi at egcrc.net wrote:
>I am trying to build a package using setuptools while
>maintaining a pristine source tree. For the standard
>distutils setup, I do this by invoking:
>         python setup.py build --build-base=<here> install
>Now for setups which generate eggs using setuptools
>this still creates a `dist' directory in the source
>root. Looking at the setuptools documentation, I
>         python setup.py build --build-base=<here> \
>                 bdist_egg --bdist-dir=<there> install
>and also --dist-dir=<there> instead of --bdist-dir,
>but these both seem to place the "final" egg in
><there>, and no longer install into the invoked
>python's site-packages directory.

Replace the 'install' part of your command line with 'easy_install 
<there>projectname-projversion-pyversion.egg', or if <there> is an empty 
directory, then 'easy_install <there>/*.egg' will also work.

More information about the Distutils-SIG mailing list