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

Daniel Holth dholth at gmail.com
Fri Jun 19 18:59:40 CEST 2015


Sorry. The forgettable py_modules parameter is one reason why distutils is
terrible and we should stop using it. No we don't have a general
replacement to recommend yet.

Just keep in mind that having a top-level __main__, if you install two such
packages, one __main__ will clobber the other.

On Fri, Jun 19, 2015 at 12:51 PM Dimitri Maziuk <dmaziuk at bmrb.wisc.edu>
wrote:

> On 06/19/2015 10:44 AM, Daniel Holth wrote:
> > Did you try py_modules=["__main__"] in setup.py
>
> No, of course not: there is no py_modules (or "py_" - anything) anywhere
> in the developer's guide webpage so how would I know to try it?
>
> That is exactly what I was looking for.
>
> Thank you.
> --
> Dimitri Maziuk
> Programmer/sysadmin
> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150619/ea9e8528/attachment.html>


More information about the Distutils-SIG mailing list