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

Dimitri Maziuk dmaziuk at bmrb.wisc.edu
Fri Jun 19 23:33:48 CEST 2015


On 06/19/2015 03:43 PM, Daniel Holth wrote:
> Don't worry about it.
> 
> FYI the .egg-info (or .dist-info) cruft is necessary if you want to use
> certain setuptools features including console_scripts. Without metadata
> your module will be importable, but pkg_resources won't be able to tell
> that your distribution is available.

Even easier then: a bdist_zip target that automagically adds
py_modules=["__main__"] and saves the file with extension .pyz instead
of .egg.

I'm not worried about a few extra bytes and besides I might want to use
pkg_resourced data files inside the .pyz some day so I'd rather keep at
least that part of it anyway.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150619/05f36157/attachment.sig>


More information about the Distutils-SIG mailing list