[Distutils] get name of built egg

PJ Eby ownerscircle at gmail.com
Fri Mar 16 18:37:07 CET 2012

On Mar 16, 2012 10:42 AM, "Andrea Crotti" <andrea.crotti.0 at gmail.com> wrote:
> Given the setuptools magic done by
> python setup.py bdist_egg
> is there a way to find out what will be the name of the final egg file?
> It would be really useful to know for me and I can't find any option
> to tell bdist_egg to let me know where it will write..

If you just want the file accessible by a script or some larger build
process that's invoking the setup script, the easiest way to do it is to
specify an empty output directory for the distribution to be built in,
instead of 'dist/'.  Then, there will only be one file in that directory
after running bdist_egg: the egg file.

(If you meant some other scenario, then you'll need to explain in more
detail what you want.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20120316/3b152f91/attachment.html>

More information about the Distutils-SIG mailing list