Hi All,
I'm reading http://pypi.python.org/pypi/zc.recipe.egg#script-generation with a hope to finding out how to write an egg such that I can have mroe own scripts generated and called.
I think having a read of the demo egg used in these tests would solve my problems, but where does it live?
cheers,
Chris
Chris Withers, on 2008-08-06:
Hi All,
I'm reading http://pypi.python.org/pypi/zc.recipe.egg#script-generation with a hope to finding out how to write an egg such that I can have mroe own scripts generated and called.
I think having a read of the demo egg used in these tests would solve my problems, but where does it live?
If I have followed the code trail correctly:
- zc/recipe/egg/tests.py has a setUp(test) function.
- This calls 'zc.buildout.tests.easy_install_SetUp(test)'.
- That function calls create_sample_eggs from that same tests.py file in zc.buildout.
- And that method creates some eggs on the fly.
Maurits van Rees wrote:
If I have followed the code trail correctly:
zc/recipe/egg/tests.py has a setUp(test) function.
This calls 'zc.buildout.tests.easy_install_SetUp(test)'.
That function calls create_sample_eggs from that same tests.py file in zc.buildout.
And that method creates some eggs on the fly.
Indeed, the code is in here:
http://svn.zope.org/zc.buildout/trunk/src/zc/buildout/tests.py?rev=88919&...
search for "def create_sample_eggs".
As far as documentation goes, that's about as unhelpful and opaque as it gets :-(
Why on earth is this stuff obfuscated in this way?
Chris
On Aug 6, 2008, at 1:14 PM, Chris Withers wrote:
Hi All,
I'm reading http://pypi.python.org/pypi/zc.recipe.egg#script-generation with a hope to finding out how to write an egg such that I can have mroe own scripts generated and called.
See:
http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation
Jim
-- Jim Fulton Zope Corporation
Jim Fulton wrote:
See:
http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation
Thanks, but that demo egg is referred to from a lot of places. The way it's created means there's zero chance for someone trying to see how the structure of the egg relates to the docs in zc.recipe.egg...
cheers,
Chris