[Distutils] executable egg & top-level __main__.py: SOLVED
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
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.
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 190 bytes
Desc: OpenPGP digital signature
More information about the Distutils-SIG