Directly executing from an egg

R

RVince

I have created an egg file with one source file in it, hello.py (I
just want to go through the entire uild/install/execute cycle using
egg files). I create it fine, and now I want to execute the eg file
directly (i.e. run it without unpacking or easy_install'ing it). So
when I invoke it from the directory the egg is in with:

python 'hello-1.0-py2.6.egg

I get:

can't find '__main__.py' in 'hello-1.0-py2.6.egg'

How do I remedy this? I've looked through the docs but it seems
ambiguous on this point to me. Below is the setup section from my
setup.py which I used to create this egg. Thank you, RVince

setup(
name='hello',
version='1.0',
description='',
author='',
author_email='',
install_requires=[
"SQLAlchemy>=0.4",
"psycopg2",
],
zip_safe=False,
entry_points="""
[hello]
hello = hello:hello_app
""",
)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top