Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #92836
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-06-18 09:53 -0700 |
| Message-ID | <d0a50110-66af-45cd-bdd2-7f8ecba68981@googlegroups.com> (permalink) |
| Subject | executable egg? |
| From | dmaziuk <dmaziuk@bmrb.wisc.edu> |
Hi all,
Here's my directory structure:
myegg/
pkg1/
__init__.py
...
pkg2/
__init__.py
...
pkg3/
__init__.py
...
setup.py
I can make an egg with "python setup.py bdist_egg" and it works just fine. I'd like to make it executable with "python myegg.egg" which is supposed to be doable in 2.6+. According to everything I can find, all I need is to add
myegg/
__main__.py
The end result, however, is "/usr/bin/python: can't find '__main__' module". It is correct: checking the egg with unzip -l shows that __main__.py is indeed not in it. So I played with options for including package data, also made a stab or two at entry_points with no luck.
So, what am I missing. Or does it only work with one package in the egg?
(I'm using 2.7 & 2.6 on centos 7 & 6 resp.)
TIA,
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
executable egg? dmaziuk <dmaziuk@bmrb.wisc.edu> - 2015-06-18 09:53 -0700
csiph-web