[Distutils] executable egg & top-level __main__.py

Daniel Holth dholth at gmail.com
Fri Jun 19 17:44:41 CEST 2015

Did you try py_modules=["__main__"] in setup.py

On Fri, Jun 19, 2015, 11:14 AM Dimitri Maziuk <dmaziuk at bmrb.wisc.edu> wrote:

> On 2015-06-18 19:50, Alex Clark wrote:
> > Probably can't answer that without seeing setup.py where there should at
> > least be ``packages = find_packages()``.
> Yes there is. Also version and name, that's it: straight from the fine
> manual.
> > Also sounds like you may be looking for console_scripts.
> No. I mean, the documentation is sketchy to put it charitably, but it
> doesn't look like running "python myegg.egg" will call any of those. It
> looks like it should call "setuptools.installation" entry point(s) but
> that one's not quite what I'm after.
> What I'm looking for is exactly what I asked: I have a __main__.py in
> the root of my directory tree next to setup.py, I want it included in
> the egg when I run "python setup.py bdist_egg".
> Cheers,
> Dimitri
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150619/441892ef/attachment.html>

More information about the Distutils-SIG mailing list